From 1e618ad140e24441a7ebdbfe0c4822aa0e06118c Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 28 Sep 2018 01:48:32 +0200 Subject: 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. --- m4/dpkg-build.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'm4') 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) -- cgit v1.2.3