3 # for old-fashioned builds (new scheme is more sensible to this respect)
10 # we keep only RPMS and SPRMS
12 totrash="BUILD CODEBASES SOURCES tmp"
14 for build in "$@" ; do
15 text_base=$(basename $build .log.txt)
16 if [ "$text_base" != "$build" ] ; then
17 echo "Removing txt link $build"
21 base=$(basename $build)
22 trashbase=/build/trash/$base
23 [ -d $trashbase ] || mkdir $trashbase
24 for dir in $totrash ; do
25 if [ -d $build/build/$dir ] ; then
26 echo "Trashing $build/build/$dir"
27 mv $build/build/$dir $trashbase/$dir