summaryrefslogtreecommitdiffstats
path: root/bin/release
diff options
context:
space:
mode:
authorlrknox <lrknox>2016-12-23 19:54:05 (GMT)
committerlrknox <lrknox>2016-12-23 19:54:05 (GMT)
commita659d6ed5aaf658f08da621c0dee078e894cc9d3 (patch)
tree2e00d8c13c7517c2b6a6a9cc9773e8cfd1d57328 /bin/release
parent8abd02297178d6d06513cf82cbfc9cec02d82fb9 (diff)
downloadhdf5-a659d6ed5aaf658f08da621c0dee078e894cc9d3.zip
hdf5-a659d6ed5aaf658f08da621c0dee078e894cc9d3.tar.gz
hdf5-a659d6ed5aaf658f08da621c0dee078e894cc9d3.tar.bz2
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.
Diffstat (limited to 'bin/release')
-rwxr-xr-xbin/release15
1 files changed, 15 insertions, 0 deletions
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