if test -f debian/.gitignore; then
cd debian; for i in `cat .gitignore`; do rm -fr $i; done; cd ..
fi
-if test -d deb-src; then
- echo "deb-src exist. You might remove it"
- exit 1
-fi
l=`head -1 $DEBCHANGELOG`
PROD=`echo $l|sed 's/ .*//g'`
VERSION=`echo $l|sed 's/.*(//g'|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"
fi
if $upload; then
- cd deb-src
+ :
else
if test "${SUDO_USER}"; then
if test ! -d deb-src; then
fi
else
if test -d deb-src; then
- rm -rf deb-src
+ rm -f deb-src/*.gz
if test $? -ne 0; then
echo "deb-src could not be removed. Remove deb-src manually"
exit 1
fi
$MKDEBSRC
fi
- cd deb-src
fi
+cd deb-src
for f in *.dsc; do
if test -f "$f"; then