From 45a86d5fd3eaf7ecc5eee2b911b36df5a74645ec Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 22 Dec 2002 11:18:13 +0000 Subject: [PATCH] * attila/src/attila.sh : - En cas d'absence du "configure" executer "autostuff" (tests separes pour la racine d'Alliance et pour les outils). - En cas de reinstallation globale ("--asim") effacer tous les "configure" pour provoquer leur recreation. Cet effacement est fait uniquement sous Linux. Ceci pour garentir que les scripts qui seront utilises ensuite sous Solaris auront obligatoirement ete genere sous Linux. Cette manipulation est obligatoire en raison des differences de versions automake/autoconf/libtool entre Linux & Solaris (Linux a des versions plus recentes que Solaris). --- alliance/src/attila/src/attila.sh | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/alliance/src/attila/src/attila.sh b/alliance/src/attila/src/attila.sh index 0fe1141b..05332314 100755 --- a/alliance/src/attila/src/attila.sh +++ b/alliance/src/attila/src/attila.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: attila.sh,v 1.12 2002/11/27 21:21:20 jpc Exp $ +# $Id: attila.sh,v 1.13 2002/12/22 11:18:13 jpc Exp $ # # /------------------------------------------------------------------\ # | | @@ -448,18 +448,25 @@ cd $HOME/alliance/src - if [ ! -f Makefile.in ]; then - ./autostuff - fi - if [ "$ASIM" = "y" ]; then - echo " o For ASIM install, removing $BUILD_DIR" + if [ "$ALLIANCE_OS" = "Linux" ]; then + echo " o For ASIM install, removing $BUILD_DIR & configure" + rm -f configure + fi for TOOL in $TOOLS; do echo " - $BUILD_DIR/$TOOL." - rm -rf $BUILD_DIR/$TOOL + rm -fr $BUILD_DIR/$TOOL + if [ "$ALLIANCE_OS" = "Linux" ]; then + rm -f $TOOL/configure + fi done fi + if [ ! -f Makefile.in -o ! -f configure ]; then + echo " o Running autostuff for Alliance top directory." + ./autostuff + fi + if [ ! -d $BUILD_DIR ]; then echo " o Creating build directory $BUILD_DIR" make_dir $BUILD_DIR @@ -475,8 +482,8 @@ echo " o Building & installing requested tools." for TOOL in $TOOLS; do cd $HOME/alliance/src - if [ ! -f "$TOOL/Makefile.in" ]; then - echo " - Making autostuff for $TOOL." + if [ ! -f "$TOOL/Makefile.in" -o ! -f "$TOOL/configure" ]; then + echo " - Running autostuff for $TOOL." ./autostuff $TOOL fi @@ -487,7 +494,7 @@ fi cd $TOOL - echo " - Making rule $RULE for $TOOL." + echo " - Running \"make $ARGS_MAKE\" for $TOOL." $SRC_DIR/$TOOL/configure --prefix=$INSTALL_DIR $ARGS_CONFIGURE $MAKE prefix=$INSTALL_DIR $ARGS_MAKE