summaryrefslogtreecommitdiffstats
path: root/deco/config/generatePixmaps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deco/config/generatePixmaps.sh')
-rwxr-xr-xdeco/config/generatePixmaps.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/deco/config/generatePixmaps.sh b/deco/config/generatePixmaps.sh
new file mode 100755
index 0000000..7c392a2
--- /dev/null
+++ b/deco/config/generatePixmaps.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+top_srcdir="${1:-../..}"
+imagebase="$top_srcdir/imagebase"
+UIC=$(grep "UIC = " ../../Makefile | cut -f3- -d" ")
+echo -e "#ifndef DCPIXMAPS_H\n#define DCPIXMAPS_H\n" > pixmaps.h
+$UIC -embed baghira \
+$imagebase/icon_help \
+$imagebase/preview \
+$imagebase/preview-menu >> pixmaps.h
+echo -e "#endif //DCPIXMAPS_H\n" >> pixmaps.h