1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Use git-describe in versions

Reference-to: https://github.com/tenacityteam/tenacity/pull/396

Signed-off-by: Sol Fisher Romanoff <sol@solfisher.com>
This commit is contained in:
Sol Fisher Romanoff
2021-08-03 13:52:23 +03:00
committed by GitHub
parent 4f1d9f6f63
commit 56c953a14d
6 changed files with 45 additions and 64 deletions

View File

@@ -269,14 +269,10 @@ eval $(cpp -E <<CPPEOF | sed -e 's/wxT("//g' \
-e '/^v_/p' \
-e 'd'
#include "src/Audacity.h"
v_major=AUDACITY_VERSION
v_minor=AUDACITY_RELEASE
v_micro=AUDACITY_REVISION
v_suffix=AUDACITY_SUFFIX
CPPEOF
)
version="${v_major}.${v_minor}.${v_micro}${v_suffix}"
version="${GIT_DESCRIBE}"
printf "${version}\n"
# now clean out the directory of all the things we don't need in the