X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-upstream.sh;h=1bc4fb9158a01c28bdbbc7e70369eb5e6c8d6c92;hb=c9b2a3dbfc88f3c0eb6039f387064b0d51d5ee58;hp=a42794e32b6a32f17eee0533265bced72865435a;hpb=4c9d08c9a27dab0df48a80b5301d9d6715107aa1;p=clsql.git diff --git a/make-upstream.sh b/make-upstream.sh index a42794e..1bc4fb9 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -56,7 +56,7 @@ if [ ! -z ${opt_tag} ]; then fi -if [ -z ${opt_force} -a -f ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz ]; then +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 @@ -76,10 +76,11 @@ cp -a ${TOPDIR} ${DISTDIR} echo "Cleaning distribution directory ${DISTDIR}" cd ${DISTDIR} -rm -f upload.sh make-debian.sh make-upstream.sh cvsbp-prepare.sh -rm -f test-suite/test.config +make distclean +rm -f upload.sh make-debian.sh make-upstream.sh cvsbp-prepare.sh test-suite/test.config +rm -f rm -f `find . -type f -name .cvsignore` -rm -rf `find . -type d -name CVS` +rm -rf `find . -type d -name CVS -or -name .bin` rm -f `find . -type f -name '*~' -or -name '.#*' -or -name '#*#' -or -name ".*~"` rm -f `find doc -type f -name \*.tex -or -name \*.aux -or \ -name \*.log -or -name \*.out -or -name \*.dvi`