2008-12-26 05:07:45 +01:00
|
|
|
# $Id$
|
|
|
|
|
2009-01-24 16:58:38 +01:00
|
|
|
! /CURSOR|ICON|^#|^$|^\// {
|
2008-12-26 05:07:45 +01:00
|
|
|
image[$1] = $1
|
|
|
|
}
|
|
|
|
|
|
|
|
END {
|
2009-01-04 10:01:49 +01:00
|
|
|
print("#define static") > RESRC_CPP
|
2009-01-24 16:58:38 +01:00
|
|
|
printf("#include \"wxicon_xpm.xpm\"\n") >> 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
|
2009-01-24 16:58:38 +01:00
|
|
|
printf("extern char *wxicon_xpm[];\n") >> 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
|
|
|
|
|
|
|
}
|