forked from mia/Aegisub
Add genres.awk for res.h/res.cpp generation, not in use currently. The
scripts/ dir will hold build generation scripts. Originally committed to SVN as r2523.
This commit is contained in:
parent
845c13ca14
commit
b94357e8db
1 changed files with 20 additions and 0 deletions
20
scripts/genres.awk
Normal file
20
scripts/genres.awk
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
! /CURSOR|^#|^$|^\// {
|
||||||
|
image[$1] = $1
|
||||||
|
}
|
||||||
|
|
||||||
|
END {
|
||||||
|
print("#define static") > RES_CPP
|
||||||
|
for (v in image) {
|
||||||
|
printf("#include \"../bitmaps/%s_xpm.xpm\"\n", image[v]) >> RES_CPP
|
||||||
|
}
|
||||||
|
|
||||||
|
print("#ifndef _RES_H") > RES_H
|
||||||
|
print("define _RES_H") >> RES_H
|
||||||
|
for (v in image) {
|
||||||
|
printf("extern char *%s_xpm[];\n", image[v]) >> RES_H
|
||||||
|
}
|
||||||
|
print("#endif /* _RES_H */") >> RES_H
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue