* attila/src/attila.sh :

- Ajout du switch (non documente) "--local" qui me permet d'installer
       et d'utiliser attila quant il est installe dans l'arborescence
       locale (complexifie "load_conf" encore un peu...)

* attila/etc/Makefile.am :
  - Bug : prise en compte de DESTDIR dans l'install-data-hook.
This commit is contained in:
Jean-Paul Chaput 2002-10-09 13:23:18 +00:00
parent 03c2ad3066
commit d22e67f9a2
2 changed files with 24 additions and 14 deletions

View File

@ -9,4 +9,4 @@ attila : ${srcdir}/attila.sh
EXTRA_DIST = attila.sh EXTRA_DIST = attila.sh
install-exec-hook: install-exec-hook:
chmod g+w ${bindir}/attila chmod g+w $(DESTDIR)$(bindir)/attila

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# $Id: attila.sh,v 1.6 2002/10/04 16:43:26 jpc Exp $ # $Id: attila.sh,v 1.7 2002/10/09 13:23:18 jpc Exp $
# #
# /------------------------------------------------------------------\ # /------------------------------------------------------------------\
# | | # | |
@ -212,22 +212,29 @@
ALLIANCE_TOP="$ATTILA_ALLIANCE_TOP" ALLIANCE_TOP="$ATTILA_ALLIANCE_TOP"
fi fi
if [ ! -f "$ALLIANCE_TOP/etc/attila.conf" ]; then ATTILA_CONF="$ALLIANCE_TOP/etc/attila.conf"
echo "attila: \"$ALLIANCE_TOP/etc/attila.conf\" doesn't exist !" if [ "$ATTILA_LOCAL" = "y" ]; then
ATTILA_CONF="$ATTILA_ALLIANCE_TOP/etc/attila.conf"
fi
if [ ! -f "$ATTILA_CONF" ]; then
echo "attila: \"$ATTILA_CONF\" doesn't exist !"
echo " Please check \$ALLIANCE_TOP." echo " Please check \$ALLIANCE_TOP."
exit 1 exit 1
fi fi
if [ "$ATTILA_LOCAL" != "y" ]; then
if [ ! -d "$ALLIANCE_TOP/bin" ]; then
echo "attila: \"$ALLIANCE_TOP/bin\" doesn't exist !"
echo " Please check \$ALLIANCE_TOP."
exit 1
fi
fi
. "$ATTILA_CONF"
fi fi
if [ ! -d "$ALLIANCE_TOP/bin" ]; then
echo "attila: \"$ALLIANCE_TOP/bin\" doesn't exist !"
echo " Please check \$ALLIANCE_TOP."
exit 1
fi
. "$ALLIANCE_TOP/etc/attila.conf"
} }
@ -504,6 +511,7 @@
FULL="n" FULL="n"
AUTO="n" AUTO="n"
SELF="$0" SELF="$0"
ATTILA_LOCAL="no"
@ -534,6 +542,7 @@
--full) FULL="y";; --full) FULL="y";;
--asim) ASIM="y"; FULL="y";; --asim) ASIM="y"; FULL="y";;
--asim-noloop) ASIM="y";; --asim-noloop) ASIM="y";;
--local) ATTILA_LOCAL="y";;
--prefix=*) INSTALL_DIR=`get_string $1` --prefix=*) INSTALL_DIR=`get_string $1`
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -n "attila: Bad directory in argument \"$1\"." echo -n "attila: Bad directory in argument \"$1\"."
@ -612,7 +621,7 @@
cvs_check cvs_check
if [ "$FULL" = "y" ]; then if [ "$FULL" = "y" ]; then
# Recursive call. # Recursive call.
ARGS="" ARGS=""
if [ ! -z "$INSTALL_DIR" ]; then ARGS="$ARGS --prefix=$INSTALL_DIR"; fi if [ ! -z "$INSTALL_DIR" ]; then ARGS="$ARGS --prefix=$INSTALL_DIR"; fi
@ -622,6 +631,7 @@ if [ "$FULL" = "y" ]; then
else else
ARGS="$ARGS --user" ARGS="$ARGS --user"
fi fi
if [ "$ATTILA_LOCAL" = "y" ]; then ARGS="$ARGS --local"; fi
ARGS="$ARGS --rule=$RULE" ARGS="$ARGS --rule=$RULE"
for TOOL in $TOOLS; do for TOOL in $TOOLS; do