X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-upstream.sh;h=d9454917f6ce07ab53b9fb38e7a0f4a44c81a0ff;hb=98f470fb43c23c6bd19c3c9d36c228acafc7aec5;hp=71b6632e80b3864d691bf2fdc3149de4a98700f1;hpb=e07dc7255b7df36b81b7f95db2e95f6c9c78e70a;p=uffi.git diff --git a/make-upstream.sh b/make-upstream.sh index 71b6632..d945491 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -5,24 +5,30 @@ set -e # abort on error -progname="`basename \"$0\"`" - usage () { - cat >&2 <&2 < /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 @@ -53,7 +72,7 @@ cp -a ${TOPDIR} ${DISTDIR} echo "Cleaning distribution directory ${DISTDIR}" cd ${DISTDIR} -rm -f upload.sh make-upload.sh make-debian.sh cvsbp-prepare.sh +rm -f upload.sh make-debian.sh make-upstream.sh cvsbp-prepare.sh rm -f `find . -type f -name .cvsignore` rm -rf `find . -type d -name CVS` rm -f `find . -type f -name '*~' -or -name '.#*' -or -name '#*#' -or -name ".*~"`