aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile3
-rwxr-xr-xscripts/hexify.sh4
2 files changed, 5 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8f688a8..048e17c 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -187,8 +187,7 @@ Ida.ad.h: Ida.ad $(srcdir)/scripts/fallback.pl
perl $(srcdir)/scripts/fallback.pl $< $@
logo.h: logo.jpg
- hexdump -v -e '1/1 "0x%02x,"' < $< > $@
- echo >> $@ # make gcc 3.x happy
+ scripts/hexify.sh $< $@
ida.o: Ida.ad.h logo.h
diff --git a/scripts/hexify.sh b/scripts/hexify.sh
new file mode 100755
index 0000000..63211ca
--- /dev/null
+++ b/scripts/hexify.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+blob="$1"
+chdr="$2"
+hexdump -v -e '1/1 "0x%02x,"' < "$blob" > "$chdr"