diff options
author | Matteo Nastasi <nastasi@alternativeoutput.it> | 2016-08-15 17:28:14 +0300 |
---|---|---|
committer | Matteo Nastasi <nastasi@alternativeoutput.it> | 2016-08-15 17:28:14 +0300 |
commit | 9e8b2ff21af6aec028ca09bf6942fa0f4972f204 (patch) | |
tree | 9f7f29070ccd9b5c3a6166fddd2ae5e6376c03ae /scripts/ubuntu-build.sh | |
parent | df01ece7441d3ab86647236079e2e883257baab0 (diff) |
harmonization of 'debian/rules' and 'scripts/ubuntu-build.sh' to work together
Diffstat (limited to 'scripts/ubuntu-build.sh')
-rwxr-xr-x | scripts/ubuntu-build.sh | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/scripts/ubuntu-build.sh b/scripts/ubuntu-build.sh index 2cc108984..9dee71be7 100755 --- a/scripts/ubuntu-build.sh +++ b/scripts/ubuntu-build.sh @@ -1,10 +1,6 @@ #!/bin/bash -set -x +# set -x set -e - -echo $0 $@ -exit 123 - usage () { echo "$0 [<-s|--sersfx> <numerical_series_suffix>] [-d|--dev]" exit $1 @@ -76,27 +72,31 @@ git --no-pager log --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > "${BDIR # NOTE: artificially files date reconstruction is skipped -if [ "$IS_DEV_RELEASE" = "y" ]; then - cat <<EOF > ${BDIR}/release.tmpl -${PKG_NAME} (${PKG_VER}-1#SeRiE#${SER_SFX}) #SeRiE#; urgency=medium +mv ${BDIR}/${PKG_DIR}/debian/changelog ${BDIR}/changelog.orig +cd ${BDIR}/${PKG_DIR}/ +tar zcvf "../${PKG_NAME}_${PKG_VER}.orig.tar.gz" . +for serie in yakkety wily xenial trusty; do + if [ "$IS_DEV_RELEASE" = "y" ]; then + cat <<EOF >debian/changelog +${PKG_NAME} (${PKG_VER}-1${serie}${SER_SFX}) ${serie}; urgency=medium * New upstream release. -- ${DEBFULLNAME} <${DEBEMAIL}> ${PKG_DATE} EOF -fi - -cat ${BDIR}/${PKG_DIR}/debian/changelog >> ${BDIR}/release.tmpl -cd ${BDIR}/${PKG_DIR}/ -tar zcvf "../${PKG_NAME}_${PKG_VER}.orig.tar.gz" . -for serie in yakkety wily xenial trusty; do - debuild -S -sa + else + rm -f debian/changelog + touch debian/changelog + fi + + cat ../changelog.orig >>debian/changelog + debuild -eUBUNTU_SERIE="$serie" -S -sa # add ' -us -uc' flags to avoid signing + rm -rf * + tar zxf "../${PKG_NAME}_${PKG_VER}.orig.tar.gz" done cd - -rm ${BDIR}/release.tmpl -rm ${BDIR}/debian_control.tmpl - +mv ${BDIR}/changelog.orig ${BDIR}/${PKG_DIR}/debian/changelog echo "now cd in ${BDIR} directory and run:" echo "dput <your-ppa-address> *.changes" |