diff --git a/utils/bison-c.sh b/utils/bison-c.sh index 0dcd7ef9d3..489c5957e3 100755 --- a/utils/bison-c.sh +++ b/utils/bison-c.sh @@ -21,5 +21,7 @@ ${BISON} -d -ra -o ${OUTPUT} ${INPUT} PREFIX=`echo ${OUTPUT} | sed -e 's:\.cpp$::'` -test -f ${PREFIX}.h || exit 1 +test -f ${PREFIX}.hpp || exit 1 test -f ${PREFIX}.cpp || exit 1 + +cp ${PREFIX}.hpp ${PREFIX}.h