From: notaz Date: Thu, 19 Oct 2017 21:57:34 +0000 (+0300) Subject: pandora: mark prerelease versions X-Git-Tag: v1.93~31 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5d41a1edcfd0ac2fece688df2d476628a8b333;p=picodrive.git pandora: mark prerelease versions so they can live along released ones --- 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"