echo "The current directory should be base source of package"
exit 1
fi
-if test -d deb-src; then
- echo "deb-src exist. You might remove it"
- exit 1
+if test -f debian/.gitignore; then
+ cd debian; for i in `cat .gitignore`; do rm -fr $i; done; cd ..
fi
l=`head -1 $DEBCHANGELOG`
PROD=`echo $l|sed 's/ .*//g'`
exit 1
fi
set -e
-mkdir deb-src
+mkdir -p deb-src
ORIG=${PROD}_${MAJOR}.orig.tar.gz
echo "TAR=$TAR"
echo "ORIG=$ORIG"