9 |
AC_CACHE_VAL([ac_cv_build_version], [ |
AC_CACHE_VAL([ac_cv_build_version], [ |
10 |
ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) |
ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) |
11 |
if test -n "$ac_cv_build_version"; then |
if test -n "$ac_cv_build_version"; then |
12 |
ac_cv_build_version=$(echo $ac_cv_build_version | sed -r 's/^[^_]*[_v]//i') |
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^_]]*[[_v]]//i') |
13 |
ac_cv_build_version=$(echo $ac_cv_build_version | sed -r 's/-g/git./') |
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./') |
14 |
ac_cv_build_version=$(echo $ac_cv_build_version | sed -r 's/[[_|-]]+/./g') |
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g') |
15 |
ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) |
ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) |
16 |
if test "x$ac_cv_build_version_extra" != "xmaster"; then |
if test "x$ac_cv_build_version_extra" != "xmaster"; then |
17 |
ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]" |
ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]" |