2008-12-26 05:07:45 +01:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
! /CURSOR|^#|^$|^\// {
|
|
|
|
image[$1] = $1
|
|
|
|
}
|
|
|
|
|
|
|
|
END {
|
2009-01-04 10:01:49 +01:00
|
|
|
print("#define static") > RESRC_CPP
|
2008-12-26 05:07:45 +01:00
|
|
|
for (v in image) {
|
2009-01-04 10:01:49 +01:00
|
|
|
printf("#include \"../bitmaps/%s_xpm.xpm\"\n", image[v]) >> RESRC_CPP
|
2008-12-26 05:07:45 +01:00
|
|
|
}
|
|
|
|
|
2009-01-04 10:01:49 +01:00
|
|
|
print("#ifndef _RES_H") > RESRC_H
|
|
|
|
print("#define _RES_H") >> RESRC_H
|
2008-12-26 05:07:45 +01:00
|
|
|
for (v in image) {
|
2009-01-04 10:01:49 +01:00
|
|
|
printf("extern char *%s_xpm[];\n", image[v]) >> RESRC_H
|
2008-12-26 05:07:45 +01:00
|
|
|
}
|
2009-01-04 10:01:49 +01:00
|
|
|
print("#endif /* _RES_H */") >> RESRC_H
|
2008-12-26 05:07:45 +01:00
|
|
|
|
|
|
|
}
|