mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
release 1.85
This commit is contained in:
parent
92dfd9afa6
commit
68af34fe20
11 changed files with 80 additions and 51 deletions
27
platform/pandora/Makefile
Normal file
27
platform/pandora/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# release packaging makefile
|
||||
|
||||
VER ?= $(shell head -n 1 ../common/version.h | \
|
||||
sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')
|
||||
|
||||
PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
|
||||
|
||||
all: rel
|
||||
|
||||
../../tools/textfilter:
|
||||
make -C ../../tools/
|
||||
|
||||
/tmp/readme.txt: ../../tools/textfilter ../base_readme.txt
|
||||
../../tools/textfilter ../base_readme.txt $@ PANDORA
|
||||
|
||||
/tmp/PicoDrive.pxml: PicoDrive.pxml.template
|
||||
./make_pxml.sh $^ $@
|
||||
|
||||
rel: ../../PicoDrive PicoDrive.sh picorestore \
|
||||
PicoDrive.png PicoDrive_p.png \
|
||||
../../pico/carthw.cfg skin \
|
||||
/tmp/readme.txt /tmp/PicoDrive.pxml
|
||||
rm -rf out
|
||||
mkdir out
|
||||
cp -r $^ out/
|
||||
$(PND_MAKE) -p PicoDrive_$(VER).pnd -d out -x out/PicoDrive.pxml -i out/PicoDrive.png -c
|
||||
|
|
@ -4,10 +4,10 @@
|
|||
<titles>
|
||||
<title lang="en_US">PicoDrive</title>
|
||||
</titles>
|
||||
<version major="1" minor="80" release="0" build="899"/>
|
||||
<version major="@major@" minor="@minor@" release="0" build="@build@"/>
|
||||
<author name="notaz" website="http://notaz.gp2x.de/"/>
|
||||
</package>
|
||||
<application id="picodrive.notaz.@major@.@minor@">
|
||||
<application id="picodrive.notaz.@major@.@minor@" appdata="picodrive">
|
||||
<titles>
|
||||
<title lang="en_US">PicoDrive @major@.@minor@</title>
|
||||
</titles>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<description lang="de_DE">Ein MegaDrive/SegaCD/32x Emulator</description>
|
||||
</descriptions>
|
||||
|
||||
<exec command="PicoDrive.run"/>
|
||||
<exec command="PicoDrive.sh"/>
|
||||
|
||||
<previewpics>
|
||||
<pic src="PicoDrive_p.png"/>
|
||||
|
@ -32,7 +32,7 @@
|
|||
<license name="other"/>
|
||||
</licenses>
|
||||
|
||||
<version major="@major@" minor="@minor@" release="0" build="@revision@"/>
|
||||
<version major="@major@" minor="@minor@" release="0" build="@build@"/>
|
||||
<info name="PicoDrive @major@.@minor@ readme" type="text/plain" src="readme.txt"/>
|
||||
|
||||
<categories>
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
./PicoDrive "$@"
|
||||
|
||||
# restore stuff if pico crashes
|
||||
./picorestore
|
12
platform/pandora/PicoDrive.sh
Executable file
12
platform/pandora/PicoDrive.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 2x2M hugepages should be enough
|
||||
sudo -n /usr/pandora/scripts/op_hugetlb.sh 4
|
||||
|
||||
./PicoDrive "$@"
|
||||
|
||||
# restore stuff if pico crashes
|
||||
./picorestore
|
||||
sudo -n /usr/pandora/scripts/op_lcdrate.sh 60
|
||||
sudo -n /usr/pandora/scripts/op_gamma.sh 0
|
||||
sudo -n /usr/pandora/scripts/op_hugetlb.sh 0
|
|
@ -1,10 +1,17 @@
|
|||
#!/bin/sh
|
||||
sed -i
|
||||
set -e
|
||||
|
||||
major=`head -n 1 version.h | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\1/g'`
|
||||
minor=`head -n 1 version.h | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\2/g'`
|
||||
revision=`head -n 1 revision.h | sed 's/.*"\([0-9]*\)".*/\1/g'`
|
||||
verfile=../common/version.h
|
||||
test -f $verfile
|
||||
|
||||
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=0
|
||||
|
||||
trap "rm -f $2" ERR
|
||||
|
||||
sed 's/@major@/'$major'/' "$1" > "$2"
|
||||
sed -i 's/@minor@/'$minor'/' "$2"
|
||||
sed -i 's/@revision@/'$revision'/' "$2"
|
||||
sed -i 's/@build@/'$build'/' "$2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue