Skip to content
Snippets Groups Projects
Commit 3471cb4d authored by Pierre Loic Garoche's avatar Pierre Loic Garoche
Browse files

Better management of git branch in configure.ac

parent 4f26dcf5
No related branches found
No related tags found
No related merge requests found
define([gitversion], esyscmd([sh -c "git log --oneline | wc -l | tr -d '\n'"]))
define([gitbranch], esyscmd([sh -c "git branch | grep \* | cut -d ' ' -f2"]))
AC_INIT([lustrec], 1.5-gitversion, [ploc@garoche.net])
gitbranch=`git branch | grep \* | sed "s/\*[ ]*//"`
define([gitversion], esyscmd([sh -c "git log --oneline | wc -l | tr -d '\n'"]))
#define([gitbranch], esyscmd([sh -c "git branch | grep \* | cut -d ' ' -f2"]))
AC_SUBST(VERSION_CODENAME, "Xia/Shao Kang-dev")
AC_SUBST(GITBRANCH, gitbranch)
AC_SUBST(GITBRANCH, "$gitbranch")
# Next release will be
#AC_INIT([lustrec], [1.6], [ploc@garoche.net])
#AC_SUBST(VERSION_CODENAME, "Xia/Zhu")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment