kdelibs/kjs/create_parser

16 lines
332 B
Text
Raw Normal View History

#!/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