Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
substitutions = \
'|PACKAGE_NAME=$(PACKAGE_NAME)|' \
- '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
'|bindir=$(bindir)|' \
'|libexecdir=$(libexecdir)|' \
'|sysconfdir=$(sysconfdir)|'
AC_DEFINE(ENABLE_ONLINE_TESTS, [1], [Online Tests])
])
+# Release
+
+AC_ARG_WITH([release],
+ [AS_HELP_STRING([--with-release=STRING], [Set the package release (default: empty)])],
+ [PACKAGE_RELEASE=$withval], [PACKAGE_RELEASE=""])
+
+AC_DEFINE_UNQUOTED(
+ [PACKAGE_VERSION],
+ ["$PACKAGE_VERSION$PACKAGE_RELEASE"],
+ [The package version string])
+
# Man Pages
have_man_pages=no
# Enable debug code
override_dh_auto_configure:
- dh_auto_configure -- --enable-debug --disable-static
+ dh_auto_configure -- --enable-debug --disable-static \
+ $(if $(BUILD_ID),--with-release=".build-$(BUILD_ID)")
# Ignore if the testsuite fails
override_dh_auto_test: