diff options
author | Werner Koch <[email protected]> | 2024-07-04 15:11:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-07-04 15:11:24 +0000 |
commit | 9c448f7c7a55c8293cd33ea0fcd33dd42032504d (patch) | |
tree | b176612dde1b5c6d2304912ebb6e8cfc844e5c1b /autogen.sh | |
parent | core: Declare environ for macOS and others. (diff) | |
download | libgpg-error-9c448f7c7a55c8293cd33ea0fcd33dd42032504d.tar.gz libgpg-error-9c448f7c7a55c8293cd33ea0fcd33dd42032504d.zip |
Put the full commit id into VERSION.
* autogen.sh <find-version>: Also print the full commit id.
* configure.ac: Get the full commit id. Add it to VERSION.
(BUILD_REVISION): Replace this ac_define by
(BUILD_COMMITID): this.
* src/version.c (cright_blurb): Use here.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -265,17 +265,19 @@ if [ "$myhost" = "find-version" ]; then fi fi [ -n "$tmp" ] && beta=yes + cid=$(git rev-parse --verify HEAD | tr -d '\n\r') rev=$(git rev-parse --short HEAD | tr -d '\n\r') rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null))) else ingit=no beta=yes tmp="-unknown" + cid="0000000" rev="0000000" rvd="0" fi - echo "$package-$vers$tmp:$beta:$ingit:$vers$tmp:$vers:$tmp:$rev:$rvd:" + echo "$package-$vers$tmp:$beta:$ingit:$vers$tmp:$vers:$tmp:$rev:$rvd:$cid:" exit 0 fi # **** end FIND VERSION **** |