From a659d6ed5aaf658f08da621c0dee078e894cc9d3 Mon Sep 17 00:00:00 2001 From: lrknox Date: Fri, 23 Dec 2016 13:54:05 -0600 Subject: AM_MAINTAINER_MODE should be set to "disable" for releases. Check to see if it's enabled, and if it is, call switch_maint_mode -disable before creating release files, then set it back to enable afterward. --- bin/release | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bin/release b/bin/release index 5cd2d88..f742926 100755 --- a/bin/release +++ b/bin/release @@ -173,6 +173,15 @@ pmode='no' tmpdir="../#release_tmp.$$" # tmp work directory DOC_URL=https://git@bitbucket.hdfgroup.org/scm/hdffv/hdf5doc.git CPPLUS_RM_NAME=cpplus_RM +MAINT_MODE_ENABLED="" + +# If maintainer mode is enabled in configure, it should be disabled for release, +# and enabled again after release files have been created. If already disabled +# there's no need to do either. +MAINT_MODE_ENABLED=`grep ^AM_MAINTAINER_MODE ./configure.ac | grep enable` +if [ "${MAINT_MODE_ENABLED}" != "" ]; then + bin/switch_maint_mode -disable ./configure.ac +fi # Restore previous Version information RESTORE_VERSION() @@ -350,6 +359,12 @@ for comp in $methods; do esac done +# If AM_MAINTAINER_MODE was enabled before running this script +# restore it to "enabled". +if [ "${MAINT_MODE_ENABLED}" != "" ]; then + bin/switch_maint_mode -enable ./configure.ac +fi + # Copy the RELEASE.txt to the release area. cp release_docs/RELEASE.txt $DEST/$HDF5_VERS-RELEASE.txt -- cgit v0.12