diff options
author | Matteo Nastasi <nastasi@alternativeoutput.it> | 2016-08-11 14:35:14 +0300 |
---|---|---|
committer | Matteo Nastasi <nastasi@alternativeoutput.it> | 2016-08-11 15:30:08 +0300 |
commit | ed97d86cbce6e5df43bd28d460bff66035998a2e (patch) | |
tree | 9d711f5fdb3d5f56ab40d9f5a78db4b5499ce848 /scripts | |
parent | 6f50ea3291ec9f71b1c824af7337c0cd1f97fe0e (diff) |
debian control Build-Depends architecture and serie sensitive
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ubuntu-build.sh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scripts/ubuntu-build.sh b/scripts/ubuntu-build.sh index dc90eb324..d68c2f76e 100755 --- a/scripts/ubuntu-build.sh +++ b/scripts/ubuntu-build.sh @@ -73,7 +73,7 @@ git --no-pager log --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > "${BDIR if [ "$IS_DEV_RELEASE" = "y" ]; then - cat <<EOF > ${BDIR}/release.template + cat <<EOF > ${BDIR}/release.tmpl ${PKG_NAME} (${PKG_VER}-1#SeRiE#${SER_SFX}) #SeRiE#; urgency=medium * New upstream release. @@ -83,22 +83,27 @@ ${PKG_NAME} (${PKG_VER}-1#SeRiE#${SER_SFX}) #SeRiE#; urgency=medium EOF fi -cat ${BDIR}/${PKG_DIR}/debian/changelog >> ${BDIR}/release.template +cat ${BDIR}/${PKG_DIR}/debian/changelog >> ${BDIR}/release.tmpl cd ${BDIR}/${PKG_DIR}/ tar zcvf "../${PKG_NAME}_${PKG_VER}.orig.tar.gz" . -cp debian/control ../debian_control_orig +cp debian/control ../debian_control.tmpl for serie in yakkety wily xenial trusty; do if [ "$serie" = "trusty" ]; then remmina_plugin_spice_architectures="amd64 i386" + remmina_plugin_spice_builddeps_archs="[!armhf]" else remmina_plugin_spice_architectures="amd64 i386 armhf" + remmina_plugin_spice_builddeps_archs="" fi - sed "s/#REMMINA_PLUGIN_SPICE_ARCHITECTURES#/$remmina_plugin_spice_architectures/g" <../debian_control_orig >debian/control - sed "s/#SeRiE#/$serie/g" < ../release.template >debian/changelog + sed "s/#REMMINA_PLUGIN_SPICE_ARCHITECTURES#/$remmina_plugin_spice_architectures/g;"\ +"s/#REMMINA_PLUGIN_SPICE_BUILDDEPS_ARCHS#/$remmina_plugin_spice_builddeps_archs/g;" <../debian_control.tmpl >debian/control + sed "s/#SeRiE#/$serie/g" < ../release.tmpl >debian/changelog debuild -S -sa done cd - -rm ${BDIR}/release.template +rm ${BDIR}/release.tmpl +rm ${BDIR}/debian_control.tmpl + echo "now cd in ${BDIR} directory and run:" echo "dput <your-ppa-address> *.changes" |