X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fid-mk-deb-src.sh;h=c63e772297a3d00ca7286cc1782dfb6fb76a0d43;hb=ea81219434763b72d3f80541ea081c47de6ff429;hp=84814e4fdfea32b91004bf22750911a95201e246;hpb=4899d5ff358df3d3a668e3439b834b8800e97ae5;p=git-tools-moved-to-github.git diff --git a/id-deb-build/id-mk-deb-src.sh b/id-deb-build/id-mk-deb-src.sh index 84814e4..c63e772 100755 --- a/id-deb-build/id-mk-deb-src.sh +++ b/id-deb-build/id-mk-deb-src.sh @@ -8,9 +8,8 @@ if test ! -f $DEBCHANGELOG; then 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'` @@ -26,7 +25,7 @@ if test ! -f ${TAR}; then exit 1 fi set -e -mkdir deb-src +mkdir -p deb-src ORIG=${PROD}_${MAJOR}.orig.tar.gz echo "TAR=$TAR" echo "ORIG=$ORIG"