]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/gen.sh
* all: brand new skins interface ( still _experimental_) for x11 and
[vlc] / modules / gui / skins2 / parser / gen.sh
1 flexml -SH -a skin.act skin.dtd
2
3 sed -e 's/\([SE]Tag_.*\)(void)/\1(void *pContext)/' \
4     -e 's/int main().*//' skin.c > skin.c.new && mv -f skin.c.new skin.c
5 sed -e 's/\([SE]Tag_.*\)(void)/\1(void*)/' \
6     -e 's/extern int yylex(void)/extern int yylex(void*)/' \
7     -e 's/\/\* XML processor entry point. \*\//#define YY_DECL int yylex(void *pContext)/' skin.h > skin.h.new && mv -f skin.h.new skin.h
8
9
10 flex -oflex.c -BLs skin.l
11 sed -e 's/\([SE]Tag_[^()]*\)()/\1(pContext)/g' flex.c > flex.c.new && mv -f flex.c.new flex.c