kdelibs/kjs/create_parser
Ivailo Monev aef9f7cf16 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-25 18:59:51 +02:00

15 lines
332 B
Bash
Executable file

#!/bin/sh
#
# A replacement for the make parser target until someone figures out
# how to do that in CMake.
#
bison -d -p kjsyy grammar.y && mv grammar.tab.c grammar.cpp;
if test -f grammar.tab.h; then
if cmp -s grammar.tab.h grammar.h; then
rm -f grammar.tab.h;
else
mv grammar.tab.h grammar.h;
fi
fi