aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2021-01-02 19:57:49 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2021-01-02 19:57:49 +0100
commit03bbdfff6150136885aad810fd2e989197ff1e8a (patch)
tree7630318bf248a6109a0c4900f5fa30b1bc712721
parentb176b6ddeea140ff160cd1baaabd22d120f26790 (diff)
downloadblogc-03bbdfff6150136885aad810fd2e989197ff1e8a.tar.gz
blogc-03bbdfff6150136885aad810fd2e989197ff1e8a.tar.bz2
blogc-03bbdfff6150136885aad810fd2e989197ff1e8a.zip
build: debian do not build version bump commits
-rwxr-xr-xbuild-aux/build-debian.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-aux/build-debian.sh b/build-aux/build-debian.sh
index 803849d..a783241 100755
--- a/build-aux/build-debian.sh
+++ b/build-aux/build-debian.sh
@@ -77,10 +77,14 @@ cp -r "${SRCDIR}/debian" "${BUILDDIR}/${P}/"
pushd "${BUILDDIR}/${P}" > /dev/null
-dch \
+## skip build silently when new version is older than last changelog version (version bump)
+if !dch \
--distribution "${DIST}" \
--newversion "${PV}-${REV}" \
"Automated build for ${DIST}"
+then
+ exit 0
+fi
pdebuild \
--pbuilder cowbuilder \