x49gp/pull-roms.sh

31 lines
714 B
Bash
Executable file

TEMPDIR=$(pwd)/tmpdir
FWDIR=$(pwd)/firmware
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
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
echo Retrieving latest Unofficial newRPL build...
mkdir -p $TEMPDIR
pushd $TEMPDIR
wget https://www.hpgcc3.org/downloads/newrplfw.bin
cp newrplfw.bin $FWDIR
popd
rm -rf $TEMPDIR