#!/bin/sh

cdd=`grep "^Package:" debian/control.stub | sed "s/Package: \+//"`

rm -rf tmp
rm -f tasks/*~
[ -d menu ] && rm -f debian/"$cdd"-*.post{inst,rm}

# Move back special postinst files provided by the meta package maintainer
#for postinst in `ls debian/*.postinst.stub 2>/dev/null` ; do
#    mv "$postinst" debian/`basename "$postinst" .stub`
#done
rm -f debian/"$cdd"-common.{templates,config,install} debian/90"$cdd"-common
rm -rf debian/po

# Move back special po files provided by the meta package maintainer
# [ -d debian/po.stub ] && mv debian/po.stub debian.po

exit 0
