1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-11-22 11:49:05 +00:00

Also take care of pruning the downloads directory from old builds.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@20083 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
chodorowski
2003-11-10 15:43:52 +00:00
parent 0e4b04b86e
commit 223f80a145

View File

@ -37,8 +37,10 @@ function md5check()
return $rc
}
#-- Process pending files ----------------------------------------------------
cd $SRC
OLDIFS=$IFS
IFS=";"
for file in $(find . -type f -not -name "*.md5" -printf "%p;"); do
if [ ! -z "$file" ]; then
@ -55,4 +57,15 @@ for file in $(find . -type f -not -name "*.md5" -printf "%p;"); do
fi
fi
done
IFS=$OLDIFS
#-- Prune downloads directory ------------------------------------------------
cd $DST
count=$(($(ls -1 | wc -l) - 3))
for directory in *; do
if [[ $count -gt 0 ]]; then
rm -rf $directory
count=$((count - 1))
fi
done