alliance/CVSROOT/fastinstool

51 lines
1.3 KiB
Plaintext
Raw Normal View History

1998-10-21 11:55:31 -05:00
#!/bin/sh
1999-10-12 10:29:20 -05:00
PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
1999-11-16 13:44:28 -06:00
#DATE=`date +"%Y.%m.%d_%H.%M.%S"`
DATE=`date +"%Y.%m.%d"`
2000-02-25 10:04:21 -06:00
INSTALL_FROM=/users/soft5/newlabo/test/alliance
INSTALL_TO=/users/soft5/newlabo/alliance
1998-10-21 11:55:31 -05:00
1999-10-21 08:53:13 -05:00
COPYTHIS=\*
1999-11-16 13:44:28 -06:00
#COPYTHIS=asimut
1999-10-21 08:53:13 -05:00
2000-02-25 10:04:21 -06:00
cd $INSTALL_FROM/archi
1999-10-15 05:01:11 -05:00
2000-02-25 10:33:15 -06:00
for ARCHI in Linux SunOS Solaris
1998-10-21 11:55:31 -05:00
do
2000-02-25 10:04:21 -06:00
for FILE in $INSTALL_FROM/archi/$ARCHI/bin/$COPYTHIS
1998-10-21 11:55:31 -05:00
do
1999-10-12 10:29:20 -05:00
# echo %%%%%% $FILE
2000-02-25 10:04:21 -06:00
cp -f $FILE $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE
chmod ug+rw $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE
ln -f -s $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`
1999-10-07 12:33:18 -05:00
done
2000-02-25 10:04:21 -06:00
for TRUC in $INSTALL_FROM/archi/$ARCHI/lib/$COPYTHIS
1999-10-07 12:33:18 -05:00
do
1999-10-12 10:29:20 -05:00
# echo %%%%%% $TRUC
2000-02-25 10:04:21 -06:00
cp -f $TRUC $INSTALL_TO/archi/$ARCHI/lib/`basename $TRUC`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/lib/`basename $TRUC`
1999-10-07 12:33:18 -05:00
done
2000-02-25 10:04:21 -06:00
for TRUC in $INSTALL_FROM/archi/$ARCHI/include/$COPYTHIS
1998-10-21 11:55:31 -05:00
do
1999-10-12 10:29:20 -05:00
# echo %%%%%% $TRUC
2000-02-25 10:04:21 -06:00
cp -f $TRUC $INSTALL_TO/archi/$ARCHI/include/`basename $TRUC`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/include/`basename $TRUC`
1998-10-21 11:55:31 -05:00
done
1999-10-07 12:33:18 -05:00
done
2000-02-25 10:33:15 -06:00
# Sanity checks
echo "Launching chgrp and chmod ..."
chmod -R ug+w /users/soft5/newlabo/alliance
chgrp -R alliance /users/soft5/newlabo/alliance
echo "Il faut faire ranlib..."