summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-09-28 01:48:32 +0200
committerGuillem Jover <guillem@debian.org>2018-10-08 10:53:08 +0200
commit1e618ad140e24441a7ebdbfe0c4822aa0e06118c (patch)
treed30d4602150f798416ad5d6981b565793f76aff6 /m4
parent13c1c95323beebfba21ad8e4e56e7c110089929d (diff)
downloaddpkg-1e618ad140e24441a7ebdbfe0c4822aa0e06118c.tar.gz
build: Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE instead
Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that directly in the Build.PL.in file.
Diffstat (limited to 'm4')
-rw-r--r--m4/dpkg-build.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/dpkg-build.m4 b/m4/dpkg-build.m4
index 5b98849c3..bd8a2e68f 100644
--- a/m4/dpkg-build.m4
+++ b/m4/dpkg-build.m4
@@ -86,7 +86,8 @@ AC_DEFUN([DPKG_DEB_COMPRESSOR], [
# DPKG_DIST_IS_RELEASE()
# --------------------
-# Check whether we are preparing a distribution tarball for a release.
+# Check whether we are preparing a distribution tarball for a release, and
+# set PACKAGE_DIST_IS_RELEASE accordingly.
AC_DEFUN([DPKG_DIST_IS_RELEASE], [
dpkg_dist_version=$srcdir/.dist-version
AS_IF([test -f $dpkg_dist_version && grep -q -v '[-]' $dpkg_dist_version], [
@@ -95,6 +96,9 @@ AC_DEFUN([DPKG_DIST_IS_RELEASE], [
dpkg_dist_is_release=0
])
unset dpkg_dist_version
+ AM_CONDITIONAL([PACKAGE_DIST_IS_RELEASE],
+ [test "$dpkg_dist_is_release" -eq 1])
+ AC_SUBST([PACKAGE_DIST_IS_RELEASE], [$dpkg_dist_is_release])
])# DPKG_DIST_IS_RELEASE
# DPKG_DIST_CHECK(COND, ERROR)