Do not pull revision info from GIT

Stop trying to pull version info from GIT when autoconf is run.
Origin: vendor
Forwarded: no
Last-Update: 2017-07-24

Gbp-Pq: Name 25_norevisionfromgit.diff
This commit is contained in:
Andreas Metzler 2022-05-14 00:51:31 +08:00 committed by openKylinBot
parent 68d9d20c79
commit 527e45328f
1 changed files with 5 additions and 3 deletions

View File

@ -39,12 +39,14 @@ m4_define(mym4_version_micro, [5])
m4_define(mym4_version,
[mym4_version_major.mym4_version_minor.mym4_version_micro])
m4_define([mym4_revision],
m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r']))
[1092])
dnl m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r']))
m4_define([mym4_revision_dec],
m4_esyscmd_s([echo $((0x$(echo ]mym4_revision[|head -c 4)))]))
m4_define([mym4_betastring],
m4_esyscmd_s([git describe --match 'libgcrypt-[0-9].*[0-9]' --long|\
awk -F- '$3!=0{print"-beta"$3}']))
[])
dnl m4_esyscmd_s([git describe --match 'libgcrypt-[0-9].*[0-9]' --long|\
dnl awk -F- '$3!=0{print"-beta"$3}']))
m4_define([mym4_isgit],m4_if(mym4_betastring,[],[no],[yes]))
m4_define([mym4_full_version],[mym4_version[]mym4_betastring])