forked from mia/Aegisub
06c2a7f6c3
Originally committed to SVN as r1368.
16 lines
337 B
Bash
16 lines
337 B
Bash
#!/bin/sh
|
|
|
|
RESFILE="$1"
|
|
|
|
egrep -v "\.cur|^(#|/|$)" $RESFILE | cut -d ' ' -f 1 | (
|
|
echo "#define static" >&4
|
|
|
|
echo "#ifndef _RES_H" >&5
|
|
echo "#define _RES_H" >&5
|
|
while read NAME
|
|
do echo "extern char *${NAME}_xpm[];" >&5
|
|
echo "#include \"../bitmaps/${NAME}_xpm.xpm\"" >&4
|
|
done
|
|
echo "#endif /* _RES_H */" >&5
|
|
) 4>res.cpp 5>res.h
|
|
|