r1981: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 6 May 2002 23:10:30 +0000 (23:10 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 6 May 2002 23:10:30 +0000 (23:10 +0000)
make-upstream.sh

index 1a2a22e068299ce46cbf6a8c989f491f8c426636..90a553bc8b04eea9cb84762dab4144394a663975 100755 (executable)
@@ -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}'"