From ee5d41a1edcfd0ac2fece688df2d476628a8b333 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 20 Oct 2017 00:57:34 +0300 Subject: [PATCH] pandora: mark prerelease versions so they can live along released ones --- platform/pandora/PicoDrive.pxml.template | 6 +++--- platform/pandora/make_pxml.sh | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/platform/pandora/PicoDrive.pxml.template b/platform/pandora/PicoDrive.pxml.template index 635d59cc..96d7b1ec 100644 --- a/platform/pandora/PicoDrive.pxml.template +++ b/platform/pandora/PicoDrive.pxml.template @@ -7,11 +7,11 @@ - + - PicoDrive @major@.@minor@ + PicoDrive @major@.@minor@@build_post@ - PicoDrive @major@.@minor@ + PicoDrive @major@.@minor@@build_post@ Genesis/MegaDrive/SegaCD/32x Emulator. diff --git a/platform/pandora/make_pxml.sh b/platform/pandora/make_pxml.sh index 3fd03a23..2fcf8334 100755 --- a/platform/pandora/make_pxml.sh +++ b/platform/pandora/make_pxml.sh @@ -8,10 +8,13 @@ major=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\1/g'` minor=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\2/g'` # lame, I know.. build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'` +test -n "$build" && build_post="-$build" test -n "$build" || build=0 trap "rm -f $2" ERR -sed 's/@major@/'$major'/' "$1" > "$2" -sed -i 's/@minor@/'$minor'/' "$2" -sed -i 's/@build@/'$build'/' "$2" +sed -e 's/@major@/'$major'/' \ + -e 's/@minor@/'$minor'/' \ + -e 's/@build@/'$build'/' \ + -e 's/@build_post@/'$build_post'/' \ + "$1" > "$2" -- 2.39.5