summaryrefslogtreecommitdiff
path: root/app/help/mkpngbutt
diff options
context:
space:
mode:
Diffstat (limited to 'app/help/mkpngbutt')
-rwxr-xr-xapp/help/mkpngbutt21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/help/mkpngbutt b/app/help/mkpngbutt
new file mode 100755
index 0000000..0b77831
--- /dev/null
+++ b/app/help/mkpngbutt
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+
+NAME=$1
+shift
+FILES=""
+for F in $* ; do
+ FILES="${FILES} ../bin/$F.xpm"
+done
+#echo ${NAME}
+
+(./mkxpmbutt ${NAME} ${FILES} | convert +compress XPM:- PNG:temp.png) 2>&1
+#(./mkxpmbutt ${NAME} ${FILES} | convert +compress -transparency '#111' XPM:- PNG:temp.png) 2>&1
+#(./mkxpmbutt ${NAME} ${FILES} | xpmtoppm | pnmtopng -force > temp.png) 2>&1
+#(mkxpmbutt ${NAME} ${FILES} | convert -transparency '#111' XPM:- PNG:temp.png) 2>&1
+if cmp -s temp.png png.d/${NAME}.png ; then
+ rm temp.png
+else
+ echo updating ${NAME}.png
+ mv temp.png png.d/${NAME}.png
+fi