Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 475 Bytes
#!/bin/sh
echo "$0: *FIXME* This script does not work for platform packages!"
exit 0
for s in sources/*; do
pkg=${s#sources/}
if [ -d packages/*/$pkg ]; then
unset PKG_URL srcfiles
srcfiles="`find $s -type f -print`"
. packages/*/$pkg/meta
for f in $srcfiles; do
file=`basename $f`
echo $PKG_URL|grep -qv $file && topurge="$topurge $f"
done
else
# obsolete package sources
topurge="$topurge $s"
fi
done
rm -rf $topurge