Support .nogitrelease file

When building a custom release in a git tree provide the ability
to prevent the release field from being overwritten by the
`git describe` output.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1402
This commit is contained in:
Turbo Fredriksson 2013-04-20 07:24:15 +02:00 committed by Brian Behlendorf
parent 382c4e5184
commit d012ba3832
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ AC_DEFUN([ZFS_AC_META], [
fi fi
ZFS_META_RELEASE=_ZFS_AC_META_GETVAL([Release]); ZFS_META_RELEASE=_ZFS_AC_META_GETVAL([Release]);
if git rev-parse --git-dir > /dev/null 2>&1; then if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}*" _match="${ZFS_META_NAME}-${ZFS_META_VERSION}*"
_alias=$(git describe --match=${_match} 2>/dev/null) _alias=$(git describe --match=${_match} 2>/dev/null)
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')