alliance/dev/scripts/misc/gendeclib

28 lines
526 B
Plaintext
Raw Normal View History

1999-09-09 09:24:53 -05:00
# batch generique d'installation des librairies
if ( "$1" == "" ) then
echo "$0 prend comme premier parametre le source"
exit
endif
if ( "$2" == "" ) then
echo "$0 prend comme deuxieme parametre la destination"
exit
endif
set SCEDIR=$1
set DSTDIR=$2
cd $SCEDIR
set FILES=`/bin/ls`
if ( "$FILES" == "" ) then
echo "aucun fichier. "
exit
endif
cd $DSTDIR
foreach FILE ( $SCEDIR/* )
set FIC=`basename $FILE`
echo -n $FIC" "
cp $SCEDIR/$FIC $DSTDIR
/usr/bin/ranlib $FIC
end
echo " "