X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-upstream.sh;h=70994b14d68ad86cc34b0eade62fba9d6e85b7ca;hb=cdd84f18473361ae5220666bbe0526fa565bc060;hp=568fe2aa619a706327310ab5579a753fe0e9c5c1;hpb=0ba06f88c7b2e70c3fe8007b9aa9d7bbfef9afcd;p=clsql.git diff --git a/make-upstream.sh b/make-upstream.sh index 568fe2a..70994b1 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -14,6 +14,7 @@ Creates upstream archives Options: -c Commit and tag CVS tree with current version numbers -t Tag CVS tree with current version numbers + -f Force creation of upstream archive, even if exists' -h Print this brief help EOF } @@ -25,6 +26,7 @@ while [ $# != 0 ]; do -h) usage; exit 0 ;; -c) opt_commit=1; opt_tag=1 ;; -t) opt_tag=1 ;; + -f) opt_force=1 ;; *) usage; exit 0 ;; esac shift @@ -52,7 +54,7 @@ if [ ! -z ${opt_tag} ]; then fi -if [ -f ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz ]; then +if [ -z ${opt_force} -a -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