summaryrefslogtreecommitdiffstats
path: root/config/generatePixmaps.sh
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
commit066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch)
tree4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /config/generatePixmaps.sh
downloadtde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz
tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip
Initial import of baghira 0.8
Diffstat (limited to 'config/generatePixmaps.sh')
-rwxr-xr-xconfig/generatePixmaps.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/generatePixmaps.sh b/config/generatePixmaps.sh
new file mode 100755
index 0000000..e0de14c
--- /dev/null
+++ b/config/generatePixmaps.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+top_srcdir="${1:-../..}"
+imagebase="$top_srcdir/imagebase"
+UIC=$(grep "UIC = " ../Makefile | cut -f3- -d" ")
+echo -e "#ifndef SCPIXMAPS_H\n#define SCPIXMAPS_H\n" > pixmaps.h
+$UIC -embed baghira \
+$imagebase/button-base \
+$imagebase/button-shadow \
+$imagebase/brush-me | \
+sed -e "s/void qInitImages_baghira()$/static void qInitImages_baghira()/" -e "s/void qCleanupImages_baghira()$/static void qCleanupImages_baghira()/ ">> pixmaps.h
+echo -e "#endif //SCPIXMAPS_H\n" >> pixmaps.h
+
+#$imagebase/AboutBaghira \