Ensure we have an original file left around to diff against later

This commit is contained in:
Hamish Coleman 2016-04-19 19:54:56 +10:00
parent 5e88282a7b
commit 8f48e1c9c8
6 changed files with 12 additions and 5 deletions

View File

@ -18,12 +18,19 @@ install.radare.projects:
sha1sum -c $<
touch $@
#
# Generate orig images so that we can diff against them later
# If we have an extractor for this image, use it
%.img: %.extract %.img.sha1
%.img.orig: %.extract %.img.orig.sha1
./$< $@
sha1sum -c $@.sha1
# Generate a working file that we can patch
%.img: %.img.orig
cp $< $@
# keep intermediate files
.SECONDARY:
mec-tools/Makefile:
git submodule update --init --remote

View File

@ -0,0 +1 @@
d3c3db9352f8e3b5decc69abe08e725958f2284f x220.8DHT34WW.img.orig

View File

@ -1 +0,0 @@
d3c3db9352f8e3b5decc69abe08e725958f2284f x220.8DHT34WW.img

View File

@ -12,7 +12,7 @@ if [ -z "$OUTPUT" ]; then
exit 1
fi
OUT1="${OUTPUT}.encrypted.orig"
OUT1="${OUTPUT}.encrypted"
dd if=g2uj23us.iso bs=$[0x01076600] skip=1 | dd bs=196608 count=1 of="$OUT1"

View File

@ -0,0 +1 @@
d70f5434ef316a66a6195651d9e231e84a2464a1 x230.G2HT35WW.img.orig

View File

@ -1 +0,0 @@
d70f5434ef316a66a6195651d9e231e84a2464a1 x230.G2HT35WW.img