2006-03-25 17:14:24 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
RESFILE="$1"
|
|
|
|
|
2007-07-05 15:25:20 +02:00
|
|
|
egrep -v "\.cur|^(#|/|$)" $RESFILE | cut -d ' ' -f 1 | (
|
2006-03-25 17:14:24 +01:00
|
|
|
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
|
|
|
|
|