* 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
install-exec-hook:
chmod g+w ${bindir}/attila
chmod g+w $(DESTDIR)$(bindir)/attila

View File

@ -1,6 +1,6 @@
#!/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"
fi
if [ ! -f "$ALLIANCE_TOP/etc/attila.conf" ]; then
echo "attila: \"$ALLIANCE_TOP/etc/attila.conf\" doesn't exist !"
ATTILA_CONF="$ALLIANCE_TOP/etc/attila.conf"
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."
exit 1
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
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"
AUTO="n"
SELF="$0"
ATTILA_LOCAL="no"
@ -534,6 +542,7 @@
--full) FULL="y";;
--asim) ASIM="y"; FULL="y";;
--asim-noloop) ASIM="y";;
--local) ATTILA_LOCAL="y";;
--prefix=*) INSTALL_DIR=`get_string $1`
if [ $? -ne 0 ]; then
echo -n "attila: Bad directory in argument \"$1\"."
@ -612,7 +621,7 @@
cvs_check
if [ "$FULL" = "y" ]; then
if [ "$FULL" = "y" ]; then
# Recursive call.
ARGS=""
if [ ! -z "$INSTALL_DIR" ]; then ARGS="$ARGS --prefix=$INSTALL_DIR"; fi
@ -622,6 +631,7 @@ if [ "$FULL" = "y" ]; then
else
ARGS="$ARGS --user"
fi
if [ "$ATTILA_LOCAL" = "y" ]; then ARGS="$ARGS --local"; fi
ARGS="$ARGS --rule=$RULE"
for TOOL in $TOOLS; do