diff options
author | Rob Savoye <rob@senecass.com> | 2020-05-18 11:18:22 -0600 |
---|---|---|
committer | Rob Savoye <rob@senecass.com> | 2020-05-18 11:18:22 -0600 |
commit | 1a76740eff41f63e64f1e65e930ad286f357362c (patch) | |
tree | 3129b87756d75c67e74656cd5368977512572c89 /configure.ac | |
parent | 2e0e9d195c4fc7bacb9dee96229faa8fb099cdc8 (diff) | |
download | dejagnu-1a76740eff41f63e64f1e65e930ad286f357362c.zip dejagnu-1a76740eff41f63e64f1e65e930ad286f357362c.tar.gz dejagnu-1a76740eff41f63e64f1e65e930ad286f357362c.tar.bz2 |
Add hook to put branch and evision in the version for development builds.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 40ee6cc..23b38f1 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,9 @@ then DEJAGNU="/dev/null" fi AC_SUBST(DEJAGNU) -dnl Makefile.am arranges for DEJAGNU to be exported in the environment. + +# See what branch we're in +BRANCH=$(cd ${srcdir} && git branch | grep '^\*' | cut -d ' ' -f 2) +AC_SUBST(BRANCH) AC_OUTPUT([Makefile]) |