clean_softs
Télécharger (388 octets)
#!/bin/bash
#Permet à partir d'un répertoire
#d'aller faire un nettoyage (make clean)
#dans tous ses sous-répertoires contenant
#un Makefile
SOFTS_DIR=~/Softs
cd $SOFTS_DIR
for makefile_location in `find . -type f | grep -i "makefile$"`
do
dir=`dirname $makefile_location`
cd $dir
if [ "$1" = "-v" ]
then
echo "Cleaning $dir"
fi
make clean 2>&1 >/dev/null
cd -
done
#Permet à partir d'un répertoire
#d'aller faire un nettoyage (make clean)
#dans tous ses sous-répertoires contenant
#un Makefile
SOFTS_DIR=~/Softs
cd $SOFTS_DIR
for makefile_location in `find . -type f | grep -i "makefile$"`
do
dir=`dirname $makefile_location`
cd $dir
if [ "$1" = "-v" ]
then
echo "Cleaning $dir"
fi
make clean 2>&1 >/dev/null
cd -
done
Si avez des problèmes avec ce script, vous pouvez utiliser le Forum Scripts