From 9cf373d8899da451e04dbf83b2ea26de3d7efcba Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Tue, 27 May 2025 08:27:09 -0700 Subject: [PATCH] Add SVN magic number to build number for MWA2API Repo plugin pkg version --- code/tools/build_mwa2api_repoplugin.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/tools/build_mwa2api_repoplugin.sh b/code/tools/build_mwa2api_repoplugin.sh index 336d99a6..ed459616 100755 --- a/code/tools/build_mwa2api_repoplugin.sh +++ b/code/tools/build_mwa2api_repoplugin.sh @@ -24,10 +24,14 @@ if [ ! -e "${PLUGIN_PROJ}" ] ; then check_exit_code 1 "${PLUGIN_PROJ} doesn't exist" fi +# add this number to Git revision index to get "build" number +# consistent with old SVN repo +MAGICNUMBER=482 # generate a revision number for from the list of Git revisions GITREV=$(git log -n1 --format="%H" -- "${PLUGIN_PROJ_PARENT}") GITREVINDEX=$(git rev-list --count "$GITREV") -VERSION="${VERSION}.${GITREVINDEX}" +SVNREV=$((GITREVINDEX + MAGICNUMBER)) +VERSION="${VERSION}.${SVNREV}" # make sure we have a build directory to use BUILD_DIR="${CODEDIR}/build"