2 # Get a list of package files that can be moved out
4 echo "Now in `pwd` going to $1"
6 echo "Landed in `pwd` "
12 KEEPGEN=4 # how many generations to keep of each package
14 KEEP="/tmp/packs.keep"
15 MOVE="/tmp/packs.move"
19 PRODS=`ls *.deb| cut -d'_' -f1 | sort -u`
22 for V in `ls -rt ${P}_*.deb | tail -$KEEPGEN | cut -d'_' -f2 `
24 echo ${P}_${V} >> $KEEP
28 ls *.deb | cut -d'_' -f1-2 | grep -v -f $KEEP > $MOVE
35 # FIXME - instead of ls, move the files away