mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-26 21:58:41 +01:00
make TEMPDIR and FWDIR overridable, create FWDIR if necessary
This commit is contained in:
parent
9360642a0f
commit
84834f46a1
1 changed files with 6 additions and 6 deletions
12
pull-roms.sh
12
pull-roms.sh
|
@ -1,13 +1,14 @@
|
||||||
TEMPDIR=$(pwd)/tmpdir
|
TEMPDIR=${TEMPDIR:-$(pwd)/tmpdir}
|
||||||
FWDIR=$(pwd)/firmware
|
FWDIR=${FWDIR:-$(pwd)/firmware}
|
||||||
|
|
||||||
|
mkdir -p $FWDIR
|
||||||
|
|
||||||
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
|
mkdir -p $TEMPDIR
|
||||||
pushd $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
|
cp *.bin $FWDIR/
|
||||||
popd
|
popd
|
||||||
rm -rf $TEMPDIR
|
rm -rf $TEMPDIR
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ mkdir -p $TEMPDIR
|
||||||
pushd $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
|
cp *.bin $FWDIR/
|
||||||
popd
|
popd
|
||||||
rm -rf $TEMPDIR
|
rm -rf $TEMPDIR
|
||||||
|
|
||||||
|
@ -25,7 +26,6 @@ echo Retrieving latest Unofficial newRPL build...
|
||||||
mkdir -p $TEMPDIR
|
mkdir -p $TEMPDIR
|
||||||
pushd $TEMPDIR
|
pushd $TEMPDIR
|
||||||
wget https://hpgcc3.org/downloads/newrplfw.bin
|
wget https://hpgcc3.org/downloads/newrplfw.bin
|
||||||
cp newrplfw.bin $FWDIR
|
cp newrplfw.bin $FWDIR/
|
||||||
popd
|
popd
|
||||||
rm -rf $TEMPDIR
|
rm -rf $TEMPDIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue