X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-upstream.sh;h=fcdbac6bde85728f02df0925d1ec3950d836e456;hb=184658d41e4e4718d7975b939efa8e6f8b41079f;hp=7711c7c965865f0ae1262ef17784979cf8f6a9ad;hpb=21cd6d665b303f493eab5bb9d71e198d704e914d;p=clsql.git diff --git a/debian/make-upstream.sh b/debian/make-upstream.sh index 7711c7c..fcdbac6 100755 --- a/debian/make-upstream.sh +++ b/debian/make-upstream.sh @@ -1,9 +1,8 @@ -#!/bin/bash -# -# Creates upstream packages -# Programmer: Kevin Rosenberg +#!/bin/bash -e + +bups.sh -Sclsql -Dcl-sql -f"-name test.config" -d"-name .bin" +exit 0 -set -e # abort on error PKG=clsql DEBPKG=cl-sql @@ -20,7 +19,9 @@ if [ -z "${VERSION}" ]; then exit 1 fi +pushd ${WORK_DIR} > /dev/null cvs commit -m 'Auto commit for Debian build' +popd > /dev/null if [ -f ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz ]; then echo "File ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz already exists." @@ -42,6 +43,7 @@ cp -a ${WORK_DIR} ${DISTDIR} echo "Cleaning distribution directory ${DISTDIR}" cd ${DISTDIR} +make clean rm -f debian/upload.sh debian/make-debian.sh debian/make-upstream.sh debian/cvsbp-prepare.sh test-suite/test.config rm -f `find . -type f -name "*.so" -or -name "*.o"` rm -f `find . -type f -name .cvsignore`