removed 'never-worked' blogger shit
[k8lowj.git] / tools / genimg_normal.sh
blobc85f92a2df4e9f5641c073edb2fcf85f87a016ec
1 #!/bin/sh
3 # $1 -- output file
4 # $2 -- have librsvg?
6 if [ "z$1" = "z" ]; then
7 echo "WTF?!"
8 exit 1
9 fi
11 have_svg="tan"
12 if [ "z$2" = "z" ]; then
13 have_svg="ona"
16 odir=`pwd`
17 mdir=`dirname "$0"`
18 cd "$mdir"
19 mdir=`pwd`
20 srcdir="$mdir/../images"
21 cd "$odir"
23 #pixmap_DATA = logjam_goat.png logjam_pencil.png
25 IMAGES="logjam_ljuser.png logjam_ljcomm.png logjam_private.png logjam_protected.png logjam_pencil.png logjam_rarrow.png logjam_larrow.png logjam_throbber_1.png logjam_throbber_2.png logjam_throbber_3.png logjam_throbber_4.png logjam_throbber_5.png logjam_throbber_6.png logjam_throbber_7.png logjam_throbber_8.png logjam_lrarrow.png logjam_goat.png"
27 LIST=" \
28 logjam_ljuser ${srcdir}/logjam_ljuser.png \
29 logjam_ljcomm ${srcdir}/logjam_ljcomm.png \
30 logjam_private ${srcdir}/logjam_private.png \
31 logjam_protected ${srcdir}/logjam_protected.png \
32 logjam_rarrow ${srcdir}/logjam_rarrow.png \
33 logjam_larrow ${srcdir}/logjam_larrow.png \
34 logjam_lrarrow ${srcdir}/logjam_lrarrow.png"
37 # images that are larger; we RLE encode them.
38 BIG_LIST=" \
39 logjam_pencil ${srcdir}/logjam_pencil.png \
40 logjam_goat ${srcdir}/logjam_goat.png"
42 THROBBER_LIST=" \
43 logjam_throbber_1 ${srcdir}/logjam_throbber_1.png \
44 logjam_throbber_2 ${srcdir}/logjam_throbber_2.png \
45 logjam_throbber_3 ${srcdir}/logjam_throbber_3.png \
46 logjam_throbber_4 ${srcdir}/logjam_throbber_4.png \
47 logjam_throbber_5 ${srcdir}/logjam_throbber_5.png \
48 logjam_throbber_6 ${srcdir}/logjam_throbber_6.png \
49 logjam_throbber_7 ${srcdir}/logjam_throbber_7.png \
50 logjam_throbber_8 ${srcdir}/logjam_throbber_8.png"
53 # noinst_DATA = pixbufs.h
54 # CLEANFILES = ${noinst_DATA}
56 # if WITH_RSVG
57 # pixbufs.h: ${IMAGES}
58 # gdk-pixbuf-csource --raw --build-list ${LIST} >${srcdir}/pixbufs.h
59 # gdk-pixbuf-csource --rle --build-list ${BIG_LIST} >>${srcdir}/pixbufs.h
60 # else
61 # pixbufs.h: ${IMAGES}
62 # gdk-pixbuf-csource --raw --build-list ${LIST} >${srcdir}/pixbufs.h
63 # gdk-pixbuf-csource --rle --build-list ${THROBBER_LIST} ${BIG_LIST} >>${srcdir}/pixbufs.h
64 # endif
67 if [ "$have_svg" = "tan" ]; then
68 echo "generating SVG pixbufs..."
69 gdk-pixbuf-csource --raw --build-list ${LIST} >"$1"
70 gdk-pixbuf-csource --rle --build-list ${BIG_LIST} >>"$1"
71 else
72 echo "generating non-SVG pixbufs..."
73 gdk-pixbuf-csource --raw --build-list ${LIST} >"$1"
74 gdk-pixbuf-csource --rle --build-list ${THROBBER_LIST} ${BIG_LIST} >>"$1"