[X2Go-Commits] [buildscripts] 07/07: bin/sbuild-deb-package: generate control file if template exists.
git-admin at x2go.org
git-admin at x2go.org
Wed May 12 12:29:54 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 0496d375fe3c642441ee4aef0f573df96bb72192
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed May 12 12:28:03 2021 +0200
bin/sbuild-deb-package: generate control file if template exists.
---
bin/sbuild-deb-package | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index b778597..3424976 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -390,6 +390,16 @@ build_packages() {
exit "1"
fi
+ if [ ! -e 'debian/control' ]; then
+ if [ -e 'debian/control.in' ]; then
+ # If there is no control file, but we have a template, generate it.
+ debian/rules FORCE_VENDOR="${l_DIST}" FORCE_RELEASE_VER="${numerical_version}" 'debian/control'
+ else
+ printf 'No control file found and there is no template to generate it from.\n' >&2
+ exit '1'
+ fi
+ fi
+
# modify the section for non-release package builds
[ "x${COMPONENT}" != "x${COMPONENT_RELEASE}" ] && {
mv -- "debian/control" "debian/control.tmp"
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list