28 lines
526 B
Plaintext
28 lines
526 B
Plaintext
|
# 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 " "
|