Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
23
cde/admin/BuildTools/master_build/cleanfnr
Executable file
23
cde/admin/BuildTools/master_build/cleanfnr
Executable file
@@ -0,0 +1,23 @@
|
||||
#! /bin/sh
|
||||
# This script cleans the fnrclone, etc directories.
|
||||
|
||||
for DIRS in `echo "fnrclone fnrnolink fnrnoRCS"`
|
||||
do
|
||||
CURRENT=$HOME/$DIRS
|
||||
if [ -d $CURRENT ];then
|
||||
echo ""
|
||||
echo "In $CURRENT"
|
||||
cd $CURRENT
|
||||
LOGS=`ls -rt`
|
||||
set -- $LOGS
|
||||
|
||||
#check to see if you have at least 10 log and script files
|
||||
while [ $# -gt 20 ]
|
||||
do
|
||||
echo $1
|
||||
rm -rf $1 || echo "could not delete $1"
|
||||
shift
|
||||
done
|
||||
fi
|
||||
echo ""
|
||||
done
|
||||
Reference in New Issue
Block a user