1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 00:23:32 +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

@@ -46,7 +46,7 @@ list( APPEND EXCLUDES
win
)
set( TLD "tenacity-minsrc-${AUDACITY_DIST_VERSION}${AUDACITY_SUFFIX}" )
set( TLD "tenacity-minsrc-${GIT_DESCRIBE}" )
set( TARBALL "${PROJECT_BINARY_DIR}/${TLD}.tar.xz" )
add_custom_target( ${TARGET}

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