Use the same orig tail filename everywhere

update
Hamish Coleman 8 years ago
parent 3da223eb98
commit cf9f96d094

@ -0,0 +1 @@
856a1a3efee305d335df10932b54aa478f818677 8duj27us.iso.orig

@ -1 +0,0 @@
856a1a3efee305d335df10932b54aa478f818677 8duj27us.iso

@ -13,8 +13,8 @@ install.radare.projects:
#
# Download any ISO image that we have a checksum for
# NOTE: makes an assumption about the Lenovo URL not changing
%.iso: %.iso.sha1
wget -O $@ https://download.lenovo.com/pccbbs/mobiles/$@
%.iso.orig: %.iso.orig.sha1
wget -O $@ https://download.lenovo.com/pccbbs/mobiles/$(basename $@)
sha1sum -c $<
touch $@
@ -41,5 +41,5 @@ mec-tools/mec_encrypt: mec-tools/Makefile
#
# TODO:
# - most of these dependancies could be automatically calculated
x220.8DHT34WW.extract: 8duj27us.iso
x230.G2HT35WW.extract: g2uj23us.iso mec-tools/mec_encrypt
x220.8DHT34WW.extract: 8duj27us.iso.orig
x230.G2HT35WW.extract: g2uj23us.iso.orig mec-tools/mec_encrypt

@ -0,0 +1 @@
d4f9d597ea792f966257c01c3b5442354f0b3cc8 g2uj23us.iso.orig

@ -1 +0,0 @@
d4f9d597ea792f966257c01c3b5442354f0b3cc8 g2uj23us.iso

@ -6,11 +6,11 @@
# - a tool that is portable to Windows
# - should output dependancy information
OUTPUT="$1"
if [ -z "$OUTPUT" ]; then
OUT="$1"
if [ -z "$OUT" ]; then
echo Need output filename
exit 1
fi
dd if=8duj27us.iso bs=$[0x005e2a00] skip=1 | dd bs=196608 count=1 of="$OUTPUT"
dd if=8duj27us.iso.orig bs=$[0x005e2a00] skip=1 | dd bs=196608 count=1 of="$OUT"

@ -6,15 +6,15 @@
# - a tool that is portable to Windows
# - should output dependancy information
OUTPUT="$1"
if [ -z "$OUTPUT" ]; then
OUT="$1"
if [ -z "$OUT" ]; then
echo Need output filename
exit 1
fi
OUT1="${OUTPUT}.enc"
OUT1="${OUT}.enc"
dd if=g2uj23us.iso bs=$[0x01076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
dd if=g2uj23us.iso.orig bs=$[0x1076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
mec-tools/mec_encrypt -d "$OUT1" >"$OUTPUT"
mec-tools/mec_encrypt -d "$OUT1" >"$OUT"

Loading…
Cancel
Save