aboutsummaryrefslogtreecommitdiff
path: root/images/make-base64.sh
blob: 1bcd742a87aecab79535b092dc91cfc7c7da0767 (plain)
1
2
3
4
5
6
7
8
9
10
11
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