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.
This commit is contained in:
lrknox 2016-12-23 13:54:05 -06:00
parent 8abd022971
commit a659d6ed5a

View File

@ -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