X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-upstream.sh;h=2acb3ae5a6852b10977c11b8d35df1f67f6f4d86;hb=8c8440d0681afef840611e93a905c49f7f8b172f;hp=1a2a22e068299ce46cbf6a8c989f491f8c426636;hpb=b1935e57b5e8ff398a0c73d1a613172753843c9c;p=uffi.git diff --git a/make-upstream.sh b/make-upstream.sh index 1a2a22e..2acb3ae 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -45,6 +45,19 @@ if [ ! -z ${opt_tag} ]; then cvs -q tag -F $UPSTREAM_TAG > /dev/null fi + +if [ -f ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz ]; then + echo "File ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz already exists." + echo -n "Are you sure that you want to create a new upstream archive? (y/N): " + read answer + case $answer in + [Yy]*) nop= ;; + *) echo "Not building" + exit 1 + ;; + esac +fi + # Prepare for archive cd .. rm -f ${PKG}_${VERSION}.tar.gz ${DEBPKG}_${VERSION}.orig.tar.gz