summaryrefslogtreecommitdiffstats
path: root/config/generatePixmaps.sh
blob: e0de14cf728d367bb35a39864c429d1692bbb1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 \