2006-03-25 17:14:24 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
RESFILE="$1"
|
|
|
|
SRCDIR="$2"
|
|
|
|
|
|
|
|
cd "$SRCDIR"
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
all: bmp2xpm wxicon_xpm.xpm
|
|
|
|
|
|
|
|
.PHONY: all bmp2xpm
|
|
|
|
|
|
|
|
srcdir=${SRCDIR}
|
|
|
|
|
|
|
|
wxicon_xpm.xpm: \$(srcdir)/icon.ico
|
2006-05-06 14:59:09 +02:00
|
|
|
\$(CONVERT) \$(srcdir)/'icon.ico[2]' wxicon_xpm.xpm
|
2006-03-25 17:14:24 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
XPMNAMES=""
|
|
|
|
|
|
|
|
for I in *.bmp
|
|
|
|
do
|
|
|
|
DNAME="`grep "bitmaps/$I" $RESFILE | cut -d ' ' -f 1`"
|
2007-04-24 01:38:13 +02:00
|
|
|
/bin/echo -e "${DNAME}_xpm.xpm: \$(srcdir)/$I
|
2006-05-06 14:59:09 +02:00
|
|
|
\t\$(CONVERT) -transparent \\#c0c0c0 \$(srcdir)/$I ${DNAME}_xpm.xpm
|
2006-03-25 17:14:24 +01:00
|
|
|
"
|
|
|
|
XPMNAMES="${XPMNAMES} ${DNAME}_xpm.xpm"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "bmp2xpm: $XPMNAMES"
|
|
|
|
|