Sprites in Repo geworfen (damit nichts verlorengeht)
[hackover2013-badge-firmware.git] / sprites / xpm_sprite_convert.sh
diff --git a/sprites/xpm_sprite_convert.sh b/sprites/xpm_sprite_convert.sh
new file mode 100644 (file)
index 0000000..45cf53b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+XPM="$1"
+
+XPM_FILE="${XPM}.xpm"
+XPM_NAME="${XPM}_xpm"
+
+if ! [ -f $XPM_FILE ]; then
+    exit -1
+fi
+
+make CFLAGS="-std=c99 -DXPM_FILE=\"$XPM_FILE\" -DXPM_NAME=\"$XPM_NAME\"" xpm_sprite_converter > /dev/null &&
+./xpm_sprite_converter
+
+rm -f xpm_sprite_converter
This page took 0.021468 seconds and 4 git commands to generate.