version 1.3.2.1, 2013/01/25 15:46:24
|
version 1.4.2.1, 2013/01/28 10:48:46
|
Line 94 CleanCVS()
|
Line 94 CleanCVS()
|
find $1 -type f -name .#\* -exec rm -f {} \; >/dev/null 2>&1 |
find $1 -type f -name .#\* -exec rm -f {} \; >/dev/null 2>&1 |
} |
} |
|
|
|
# $1 = file_pattern |
|
# $2 = From dir |
|
StripFiles() |
|
{ |
|
if [ -d "$2" ]; then |
|
local TMPFILE=$(mktemp -q /tmp/instlist.XXXXXX) |
|
if [ $? -ne 0 ]; then |
|
echo "Error:: Can't create temp file, exiting..." |
|
exit 1 |
|
fi |
|
|
|
cd $2 |
|
find . -type f -name "$1" >$TMPFILE |
|
for i in $(cat $TMPFILE); do |
|
if [ -x $i ]; then |
|
echo "Strip '$i'" |
|
strip -s $i |
|
fi |
|
done |
|
cd - |
|
rm -f $TMPFILE |
|
fi |
|
} |