1
0
Fork 0
forked from Miroirs/x49gp

refactor pull-roms.sh

This commit is contained in:
Gwenhael Le Moine 2024-10-21 17:49:33 +02:00
parent d0a5f8a166
commit b12cce480a
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -1,31 +1,24 @@
TEMPDIR=${TEMPDIR:-$(pwd)/tmpdir}
FWDIR=${FWDIR:-$(pwd)/firmware}
CWD=$(pwd)
TEMPDIR=${TEMPDIR:-$CWD/tmpdir}
FWDIR=${FWDIR:-$CWD/firmware}
mkdir -p $FWDIR
mkdir -p "$FWDIR"
mkdir -p "$TEMPDIR"
cd "$TEMPDIR" || exit 1
echo Retrieving Bootloader from hpcalc.org for HP 49g+ and HP 50g...
mkdir -p $TEMPDIR
pushd $TEMPDIR
wget https://www.hpcalc.org/hp49/pc/rom/hp-arm-models-bootloader.zip
unzip -j hp-arm-models-bootloader.zip -d $TEMPDIR
cp *.bin $FWDIR/
popd
rm -rf $TEMPDIR
unzip -j hp-arm-models-bootloader.zip -d "$TEMPDIR"
mv ./*.bin "$FWDIR"/
echo Retrieving ROM 2.15 from hpcalc.org for HP 49g+ and HP 50g...
mkdir -p $TEMPDIR
pushd $TEMPDIR
wget https://www.hpcalc.org/hp49/pc/rom/hp4950v215.zip
unzip -j hp4950v215.zip -d $TEMPDIR
cp *.bin $FWDIR/
popd
rm -rf $TEMPDIR
unzip -j hp4950v215.zip -d "$TEMPDIR"
mv ./*.bin "$FWDIR"/
echo Retrieving latest Unofficial newRPL build...
mkdir -p $TEMPDIR
pushd $TEMPDIR
wget https://hpgcc3.org/downloads/newrplfw.bin
cp newrplfw.bin $FWDIR/
popd
rm -rf $TEMPDIR
mv ./newrplfw.bin "$FWDIR"/
cd "$CWD" || exit 1
rm -rf "$TEMPDIR"