mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-26 21:58:41 +01:00
refactor pull-roms.sh
This commit is contained in:
parent
d0a5f8a166
commit
b12cce480a
1 changed files with 14 additions and 21 deletions
35
pull-roms.sh
35
pull-roms.sh
|
@ -1,31 +1,24 @@
|
||||||
TEMPDIR=${TEMPDIR:-$(pwd)/tmpdir}
|
CWD=$(pwd)
|
||||||
FWDIR=${FWDIR:-$(pwd)/firmware}
|
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...
|
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
|
wget https://www.hpcalc.org/hp49/pc/rom/hp-arm-models-bootloader.zip
|
||||||
unzip -j hp-arm-models-bootloader.zip -d $TEMPDIR
|
unzip -j hp-arm-models-bootloader.zip -d "$TEMPDIR"
|
||||||
cp *.bin $FWDIR/
|
mv ./*.bin "$FWDIR"/
|
||||||
popd
|
|
||||||
rm -rf $TEMPDIR
|
|
||||||
|
|
||||||
|
|
||||||
echo Retrieving ROM 2.15 from hpcalc.org for HP 49g+ and HP 50g...
|
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
|
wget https://www.hpcalc.org/hp49/pc/rom/hp4950v215.zip
|
||||||
unzip -j hp4950v215.zip -d $TEMPDIR
|
unzip -j hp4950v215.zip -d "$TEMPDIR"
|
||||||
cp *.bin $FWDIR/
|
mv ./*.bin "$FWDIR"/
|
||||||
popd
|
|
||||||
rm -rf $TEMPDIR
|
|
||||||
|
|
||||||
echo Retrieving latest Unofficial newRPL build...
|
echo Retrieving latest Unofficial newRPL build...
|
||||||
mkdir -p $TEMPDIR
|
|
||||||
pushd $TEMPDIR
|
|
||||||
wget https://hpgcc3.org/downloads/newrplfw.bin
|
wget https://hpgcc3.org/downloads/newrplfw.bin
|
||||||
cp newrplfw.bin $FWDIR/
|
mv ./newrplfw.bin "$FWDIR"/
|
||||||
popd
|
|
||||||
rm -rf $TEMPDIR
|
cd "$CWD" || exit 1
|
||||||
|
rm -rf "$TEMPDIR"
|
||||||
|
|
Loading…
Reference in a new issue