X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=make-upstream.sh;h=90a553bc8b04eea9cb84762dab4144394a663975;hb=8edbf702e1e9424af68c30fe3e11fd3a8d70caaa;hp=1a2a22e068299ce46cbf6a8c989f491f8c426636;hpb=b1935e57b5e8ff398a0c73d1a613172753843c9c;p=uffi.git diff --git a/make-upstream.sh b/make-upstream.sh index 1a2a22e..90a553b 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -38,6 +38,18 @@ PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} DISTDIR=${PKG}-${VERSION} DEBDIR=${DEBPKG}-${VERSION} +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 + if [ ! -z ${opt_tag} ]; then UPSTREAM_TAG=upstream_version_`echo ${VERSION} | tr . _` echo "(Re-)tagging with Upstream tag '${UPSTREAM_TAG}'"