diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2016-12-30 19:56:24 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2016-12-30 19:56:24 (GMT) |
commit | baaf735015c981d48560b71f20b33a5cc89fc05c (patch) | |
tree | e757740240372fe0751995b488ca64db6a586967 | |
parent | 3908d10f93b250fbfcf6ed1baedf6e4b75b43145 (diff) | |
parent | c2492712037dcf7353601410cb4a83776de92441 (diff) | |
download | hdf5-baaf735015c981d48560b71f20b33a5cc89fc05c.zip hdf5-baaf735015c981d48560b71f20b33a5cc89fc05c.tar.gz hdf5-baaf735015c981d48560b71f20b33a5cc89fc05c.tar.bz2 |
Merge pull request #216 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:develop to develop
* commit 'c2492712037dcf7353601410cb4a83776de92441':
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.
-rwxr-xr-x | bin/release | 15 |
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 |