rename to sb4xng, remove obsolete files

This commit is contained in:
Gwenhael Le Moine 2024-09-26 14:19:49 +02:00
parent d556cca321
commit becc8d8e7f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
9 changed files with 27 additions and 2510 deletions

View file

@ -7,7 +7,7 @@
# https://opensource.org/license/MIT.
PREFIX = /usr
DOCDIR = $(PREFIX)/doc/saturn
DOCDIR = $(PREFIX)/doc/sb4xng
VERSION_MAJOR = 0
VERSION_MINOR = 0
@ -103,13 +103,13 @@ override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \
.PHONY: all clean clean-all pretty-code install mrproper get-roms install
all: libChf/libChf.a dist/saturn docs
all: libChf/libChf.a dist/sb4xng docs
# Building
libChf/libChf.a:
make -C libChf
dist/saturn: $(DOTOS) $(DOTOS_UI4x) libChf/libChf.a
dist/sb4xng: $(DOTOS) $(DOTOS_UI4x) libChf/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(SDLLIBS) $(NCURSESLIBS)
dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/libChf.a
@ -127,7 +127,7 @@ clean:
make -C docs clean
mrproper: clean
rm -f dist/saturn dist/pack
rm -f dist/sb4xng dist/pack
make -C dist/ROMs mrproper
make -C libChf mrproper
make -C docs mrproper
@ -144,17 +144,17 @@ get-roms:
make -C dist/ROMs get-roms
# Installation
install: dist/saturn doc
install: dist/sb4xng doc
install -m 755 -d -- $(DESTDIR)$(PREFIX)/bin
install -c -m 755 dist/saturn $(DESTDIR)$(PREFIX)/bin/saturn
install -c -m 755 dist/sb4xng $(DESTDIR)$(PREFIX)/bin/sb4xng
install -c -m 755 dist/saturn48gx $(DESTDIR)$(PREFIX)/bin/saturn48gx
install -c -m 755 dist/saturn48sx $(DESTDIR)$(PREFIX)/bin/saturn48sx
install -c -m 755 dist/saturn40g $(DESTDIR)$(PREFIX)/bin/saturn40g
install -c -m 755 dist/saturn49g $(DESTDIR)$(PREFIX)/bin/saturn49g
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/saturn
install -c -m 644 dist/hplogo.png $(DESTDIR)$(PREFIX)/share/saturn/hplogo.png
cp -R dist/ROMs/ $(DESTDIR)$(PREFIX)/share/saturn/
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/sb4xng
install -c -m 644 dist/hplogo.png $(DESTDIR)$(PREFIX)/share/sb4xng/hplogo.png
cp -R dist/ROMs/ $(DESTDIR)$(PREFIX)/share/sb4xng/
install -m 755 -d -- $(DESTDIR)$(DOCDIR)
cp -R COPYING LICENSE README* docs-4.1.1.1 docs/*.{info,dvi,ps,pdf} libChf/docs/*.{info,dvi,ps,pdf} $(DESTDIR)$(DOCDIR)
@ -166,12 +166,12 @@ install: dist/saturn doc
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn40g.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn40g.desktop
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/saturn
rm -f $(DESTDIR)$(PREFIX)/bin/sb4xng
rm -f $(DESTDIR)$(PREFIX)/bin/saturn48gx
rm -f $(DESTDIR)$(PREFIX)/bin/saturn48sx
rm -f $(DESTDIR)$(PREFIX)/bin/saturn40g
rm -f $(DESTDIR)$(PREFIX)/bin/saturn49g
rm -fr $(DESTDIR)$(PREFIX)/share/saturn
rm -fr $(DESTDIR)$(PREFIX)/share/sb4xng
rm -fr $(DESTDIR)$(DOCDIR)
rm -f $(DESTDIR)$(PREFIX)/share/applications/saturn48gx.desktop
rm -f $(DESTDIR)$(PREFIX)/share/applications/saturn48sx.desktop

2422
dist/Saturn.ad vendored

File diff suppressed because it is too large Load diff

21
dist/run48.sh vendored
View file

@ -1,21 +0,0 @@
#!/bin/bash -eu
cd "$(dirname "$0")" ; CWD=$(pwd)
STATEDIR=$CWD/stateDir.48
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/gxrom-r ]; then
make -C .. get-roms
cp ROMs/gxrom-r "$STATEDIR"/gxrom-r
fi
RAM=''
if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset
fi
[ ! -e "$STATEDIR"/port1 ] && dd if=/dev/zero of="$STATEDIR"/port1 bs=1k count=128
[ ! -e "$STATEDIR"/port2 ] && dd if=/dev/zero of="$STATEDIR"/port2 bs=1k count=4096
./run_saturn -face hp48 -hw hp48 -stateDir "$STATEDIR" -rom gxrom-r $RAM -port1 port1 -port2 port2

22
dist/run49.sh vendored
View file

@ -1,22 +0,0 @@
#!/bin/bash -eu
cd "$(dirname "$0")" ; CWD=$(pwd)
STATEDIR=$CWD/stateDir.49
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom.49g ]; then
( cd "$STATEDIR"
wget -c https://www.hpcalc.org/hp49/pc/rom/hp4950v210.zip -O rom.zip
# wget -c https://www.hpcalc.org/hp49/pc/rom/beta1196.zip -O rom.zip
unzip rom.zip
rm rom.zip
)
fi
RAM=''
if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset
fi
./run_saturn -face hp49 -hw hp49 -stateDir "$STATEDIR" -rom rom.49g $RAM "$@"

18
dist/run_saturn vendored
View file

@ -1,18 +0,0 @@
#!/bin/sh
#
# $Id: run_saturn,v 4.1 2000/12/11 09:54:19 cibrario Rel $
#
# This file allows you to run saturn directly from the build directory,
# without installing it; regular use is discouraged.
if [ ! -r Saturn ]; then ln -s Saturn.ad Saturn; fi
# Be sure that XUSERFILESEARCHPATH does not supersede XAPPLRESDIR (IRIX)
if [ "$XUSERFILESEARCHPATH" != "" ]; then
XUSERFILESEARCHPATH=./%L/%N:./%l/%N:./%N:$XUSERFILESEARCHPATH;
export XUSERFILESEARCHPATH;
fi
XAPPLRESDIR=.; export XAPPLRESDIR # Take resources from here
NLSPATH=./%N; export NLSPATH # Message catalog is here, too
./saturn "$@"

8
dist/saturn40g vendored
View file

@ -5,16 +5,16 @@ cd "$(dirname "$0")" || exit 1
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
STATEDIR=${STATEDIR:-$STATE_HOME/saturn/40g}
STATEDIR=${STATEDIR:-$STATE_HOME/sb4xng/40g}
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom ]; then
if [ ! -d ../share/saturn/ROMs/ ]; then
if [ ! -d ../share/sb4xng/ROMs/ ]; then
echo "Error: No ROMs/ dir found"
exit 1
fi
if [ ! -d "$STATEDIR"/../ROMs ]; then
cp -R ../share/saturn/ROMs/ "$STATEDIR"/../ROMs
cp -R ../share/sb4xng/ROMs/ "$STATEDIR"/../ROMs
fi
make -C "$STATEDIR"/../ROMs rom.39g
cp "$STATEDIR"/../ROMs/rom.39g "$STATEDIR"/rom
@ -25,4 +25,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RESET=-reset
fi
./saturn --40g --state-dir "$STATEDIR" "$RESET" "$@"
sb4xng --40g --state-dir "$STATEDIR" "$RESET" "$@"

8
dist/saturn48gx vendored
View file

@ -5,16 +5,16 @@ cd "$(dirname "$0")" || exit 1
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
STATEDIR=${STATEDIR:-$STATE_HOME/saturn/48gx}
STATEDIR=${STATEDIR:-$STATE_HOME/sb4xng/48gx}
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom ]; then
if [ ! -d ../share/saturn/ROMs/ ]; then
if [ ! -d ../share/sb4xng/ROMs/ ]; then
echo "Error: No ROMs/ dir found"
exit 1
fi
if [ ! -d "$STATEDIR"/../ROMs ]; then
cp -R ../share/saturn/ROMs/ "$STATEDIR"/../ROMs
cp -R ../share/sb4xng/ROMs/ "$STATEDIR"/../ROMs
fi
make -C "$STATEDIR"/../ROMs gxrom-r
cp "$STATEDIR"/../ROMs/gxrom-r "$STATEDIR"/rom
@ -28,4 +28,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RESET=--reset
fi
./saturn --48gx --state-dir "$STATEDIR" "$RESET" "$@"
sb4xng --48gx --state-dir "$STATEDIR" "$RESET" "$@"

8
dist/saturn48sx vendored
View file

@ -5,16 +5,16 @@ cd "$(dirname "$0")" || exit 1
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
STATEDIR=${STATEDIR:-$STATE_HOME/saturn/48sx}
STATEDIR=${STATEDIR:-$STATE_HOME/sb4xng/48sx}
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom ]; then
if [ ! -d ../share/saturn/ROMs/ ]; then
if [ ! -d ../share/sb4xng/ROMs/ ]; then
echo "Error: No ROMs/ dir found"
exit 1
fi
if [ ! -d "$STATEDIR"/../ROMs ]; then
cp -R ../share/saturn/ROMs/ "$STATEDIR"/../ROMs
cp -R ../share/sb4xng/ROMs/ "$STATEDIR"/../ROMs
fi
make -C "$STATEDIR"/../ROMs sxrom-j
cp "$STATEDIR"/../ROMs/sxrom-j "$STATEDIR"/rom
@ -28,4 +28,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RESET=--reset
fi
./saturn --48sx --state-dir "$STATEDIR" "$RESET" "$@"
sb4xng --48sx --state-dir "$STATEDIR" "$RESET" "$@"

8
dist/saturn49g vendored
View file

@ -5,16 +5,16 @@ cd "$(dirname "$0")" || exit 1
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
STATEDIR=${STATEDIR:-$STATE_HOME/saturn/49g}
STATEDIR=${STATEDIR:-$STATE_HOME/sb4xng/49g}
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom ]; then
if [ ! -d ../share/saturn/ROMs/ ]; then
if [ ! -d ../share/sb4xng/ROMs/ ]; then
echo "Error: No ROMs/ dir found"
exit 1
fi
if [ ! -d "$STATEDIR"/../ROMs ]; then
cp -R ../share/saturn/ROMs/ "$STATEDIR"/../ROMs
cp -R ../share/sb4xng/ROMs/ "$STATEDIR"/../ROMs
fi
make -C "$STATEDIR"/../ROMs rom.49g
cp "$STATEDIR"/../ROMs/rom.49g "$STATEDIR"/rom
@ -25,4 +25,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RESET=-reset
fi
./saturn --49g --state-dir "$STATEDIR" "$RESET" "$@"
sb4xng --49g --state-dir "$STATEDIR" "$RESET" "$@"