cantera/bin/rm_cvsignore
2004-08-03 20:49:58 +00:00

40 lines
654 B
Bash
Executable file

#!/bin/sh
#
# rm_cvsignore:
#
# This script will delete all files listed in .cvsignore
# except the file Makefile
#
###################################################################
#
delete_file()
#
# This routine will delete a file
#
{
dferrorStatus=0
for aaa in $*
do
if [ $aaa != "Makefile" -a $aaa != "runtest" ]
then
if [ -f $aaa ]
then
/bin/rm -f $aaa
fi
fi
done
return $dferrorStatus
}
#
###################################################################
#
ignore_list=`cat .cvsignore`
for item in $ignore_list
do
delete_file $item
done
#
#
####################################################################
#