pandora: mark prerelease versions

so they can live along released ones
This commit is contained in:
notaz 2017-10-20 00:57:34 +03:00
parent 35f2b65ef7
commit ee5d41a1ed
2 changed files with 9 additions and 6 deletions

View file

@ -7,11 +7,11 @@
<version major="@major@" minor="@minor@" release="0" build="@build@"/> <version major="@major@" minor="@minor@" release="0" build="@build@"/>
<author name="notaz" website="http://notaz.gp2x.de/"/> <author name="notaz" website="http://notaz.gp2x.de/"/>
</package> </package>
<application id="picodrive.notaz.@major@.@minor@" appdata="picodrive"> <application id="picodrive.notaz.@major@.@minor@@build_post@" appdata="picodrive">
<titles> <titles>
<title lang="en_US">PicoDrive @major@.@minor@</title> <title lang="en_US">PicoDrive @major@.@minor@@build_post@</title>
</titles> </titles>
<title lang="en_US">PicoDrive @major@.@minor@</title> <title lang="en_US">PicoDrive @major@.@minor@@build_post@</title>
<descriptions> <descriptions>
<description lang="en_US">Genesis/MegaDrive/SegaCD/32x Emulator.</description> <description lang="en_US">Genesis/MegaDrive/SegaCD/32x Emulator.</description>

View file

@ -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'` minor=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\2/g'`
# lame, I know.. # lame, I know..
build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'` build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'`
test -n "$build" && build_post="-$build"
test -n "$build" || build=0 test -n "$build" || build=0
trap "rm -f $2" ERR trap "rm -f $2" ERR
sed 's/@major@/'$major'/' "$1" > "$2" sed -e 's/@major@/'$major'/' \
sed -i 's/@minor@/'$minor'/' "$2" -e 's/@minor@/'$minor'/' \
sed -i 's/@build@/'$build'/' "$2" -e 's/@build@/'$build'/' \
-e 's/@build_post@/'$build_post'/' \
"$1" > "$2"