only get needed ROM, add saturn40g
This commit is contained in:
parent
e101c2312d
commit
bfe17e0470
7 changed files with 60 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,5 +18,5 @@ dist/saturn
|
||||||
dist/saturn.cat
|
dist/saturn.cat
|
||||||
dist/stateDir.*
|
dist/stateDir.*
|
||||||
|
|
||||||
dist/ROMs/*rom-*
|
dist/ROMs/*rom*
|
||||||
/manual/saturn.log
|
/manual/saturn.log
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -148,6 +148,8 @@ install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad manual
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/saturn48gx
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/saturn48gx
|
||||||
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn49g > $(DESTDIR)$(PREFIX)/bin/saturn49g
|
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn49g > $(DESTDIR)$(PREFIX)/bin/saturn49g
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/saturn49g
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/saturn49g
|
||||||
|
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn40g > $(DESTDIR)$(PREFIX)/bin/saturn40g
|
||||||
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/saturn40g
|
||||||
|
|
||||||
install -c -m 644 dist/saturn.cat $(DESTDIR)$(PREFIX)/bin/saturn.cat #FIXME
|
install -c -m 644 dist/saturn.cat $(DESTDIR)$(PREFIX)/bin/saturn.cat #FIXME
|
||||||
# install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES
|
# install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES
|
||||||
|
@ -167,3 +169,4 @@ install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad manual
|
||||||
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/applications
|
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/applications
|
||||||
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn48gx.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn48gx.desktop
|
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn48gx.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn48gx.desktop
|
||||||
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn49g.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn49g.desktop
|
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn49g.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn49g.desktop
|
||||||
|
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn40g.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn40g.desktop
|
||||||
|
|
22
dist/ROMs/Makefile
vendored
22
dist/ROMs/Makefile
vendored
|
@ -1,9 +1,23 @@
|
||||||
.PHONY: get-roms mrproper
|
.PHONY: get-roms mrproper
|
||||||
|
|
||||||
get-roms: gxrom-l gxrom-m gxrom-p gxrom-r rom.49g
|
get-roms: sxrom-a sxrom-b sxrom-c sxrom-d sxrom-e sxrom-j gxrom-l gxrom-m gxrom-p gxrom-r rom.49g
|
||||||
|
|
||||||
mrproper:
|
mrproper:
|
||||||
rm -f gxrom-l gxrom-m gxrom-p gxrom-r rom.49g
|
rm -f ./sxrom-a ./sxrom-b ./sxrom-c ./sxrom-d ./sxrom-e ./sxrom-j ./gxrom-l ./gxrom-m ./gxrom-p ./gxrom-r ./rom.49g
|
||||||
|
|
||||||
|
# HP 48Sx
|
||||||
|
sxrom-a:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-a.zip" --output - | funzip > "sxrom-a"
|
||||||
|
sxrom-b:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-b.zip" --output - | funzip > "sxrom-b"
|
||||||
|
sxrom-c:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-c.zip" --output - | funzip > "sxrom-c"
|
||||||
|
sxrom-d:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-d.zip" --output - | funzip > "sxrom-d"
|
||||||
|
sxrom-e:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-e.zip" --output - | funzip > "sxrom-e"
|
||||||
|
sxrom-j:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-j.zip" --output - | funzip > "sxrom-j"
|
||||||
|
|
||||||
# HP 48Gx
|
# HP 48Gx
|
||||||
gxrom-l:
|
gxrom-l:
|
||||||
|
@ -20,3 +34,7 @@ rom.49g:
|
||||||
curl "https://www.hpcalc.org/hp49/pc/rom/beta1196.zip" --output rom-49g.zip
|
curl "https://www.hpcalc.org/hp49/pc/rom/beta1196.zip" --output rom-49g.zip
|
||||||
unzip rom-49g.zip rom.49g
|
unzip rom-49g.zip rom.49g
|
||||||
rm rom-49g.zip
|
rm rom-49g.zip
|
||||||
|
|
||||||
|
# HP 39g/40g
|
||||||
|
rom.40g:
|
||||||
|
curl "https://www.hpcalc.org/hp40/pc/rom3940.zip" --output - | funzip > "rom.40g"
|
||||||
|
|
25
dist/saturn40g
vendored
Executable file
25
dist/saturn40g
vendored
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash -eu
|
||||||
|
|
||||||
|
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
|
||||||
|
|
||||||
|
STATEDIR=$STATE_HOME/saturn/40g
|
||||||
|
mkdir -p "$STATEDIR"
|
||||||
|
|
||||||
|
if [ ! -e "$STATEDIR"/rom.40g ]; then
|
||||||
|
if [ ! -d @PREFIX@/share/saturn/ROMs/ ]; then
|
||||||
|
echo "Error: No ROMs/ dir found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
||||||
|
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
||||||
|
fi
|
||||||
|
make -C "$STATEDIR"/../ROMs rom.40g
|
||||||
|
cp "$STATEDIR"/../ROMs/rom.40g "$STATEDIR"/rom.40g
|
||||||
|
fi
|
||||||
|
|
||||||
|
RAM=''
|
||||||
|
if [ ! -e "$STATEDIR"/ram ]; then
|
||||||
|
RAM=-reset
|
||||||
|
fi
|
||||||
|
|
||||||
|
@PREFIX@/bin/saturn -face hp40 -hw hp40 -stateDir "$STATEDIR" -rom rom.40g $RAM "$@"
|
9
dist/saturn40g.desktop
vendored
Normal file
9
dist/saturn40g.desktop
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Terminal=false
|
||||||
|
Exec=@PREFIX@/bin/saturn40g
|
||||||
|
Name=saturn40g
|
||||||
|
Icon=@PREFIX@/share/saturn/hplogo.png
|
||||||
|
Categories=Utility;
|
2
dist/saturn48gx
vendored
2
dist/saturn48gx
vendored
|
@ -13,7 +13,7 @@ if [ ! -e "$STATEDIR"/gxrom-r ]; then
|
||||||
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
||||||
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
||||||
fi
|
fi
|
||||||
make -C "$STATEDIR"/../ROMs get-roms
|
make -C "$STATEDIR"/../ROMs gxrom-r
|
||||||
cp "$STATEDIR"/../ROMs/gxrom-r "$STATEDIR"/gxrom-r
|
cp "$STATEDIR"/../ROMs/gxrom-r "$STATEDIR"/gxrom-r
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
2
dist/saturn49g
vendored
2
dist/saturn49g
vendored
|
@ -13,7 +13,7 @@ if [ ! -e "$STATEDIR"/rom.49g ]; then
|
||||||
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
||||||
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
||||||
fi
|
fi
|
||||||
make -C "$STATEDIR"/../ROMs get-roms
|
make -C "$STATEDIR"/../ROMs rom.49g
|
||||||
cp "$STATEDIR"/../ROMs/rom.49g "$STATEDIR"/rom.49g
|
cp "$STATEDIR"/../ROMs/rom.49g "$STATEDIR"/rom.49g
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue