aboutsummaryrefslogtreecommitdiff
path: root/images/make-base64.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-30 20:29:48 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-30 20:29:48 +0000
commit99e6d1c910de1f9b31a10977d57d768827f6e8f5 (patch)
treeba50f33bcab0697232a8ef8f39cae995ff72f811 /images/make-base64.sh
created plugin to make a buttonbar on the patch window in edit modesvn2git-rootbackups/scripts/guiplugins/buttonbar@14667
svn path=/trunk/scripts/guiplugins/buttonbar/; revision=14539
Diffstat (limited to 'images/make-base64.sh')
-rw-r--r--images/make-base64.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/images/make-base64.sh b/images/make-base64.sh
new file mode 100644
index 0000000..1bcd742
--- /dev/null
+++ b/images/make-base64.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+rm images.txt
+touch images.txt
+for file in *.gif; do
+ name=`echo $file | sed 's|\.gif||'`
+ echo $name
+ echo "set ${name}data {" >> images.txt
+ uuencode -m $name.gif temp | tail -n +2 | head -n -1 >> images.txt
+ echo "}" >> images.txt
+ echo "image create photo buttonimage$name -data \$${name}data" >> images.txt
+done