|
a/src/ylwrap |
|
b/src/ylwrap |
|
... |
|
... |
40 |
|
40 |
|
41 |
for f in location.hh position.hh stack.hh; do
|
41 |
for f in location.hh position.hh stack.hh; do
|
42 |
cmp -s "${tmpdir}"/$f "${inputdir}"/$f || cp -p "${tmpdir}"/$f "${inputdir}"
|
42 |
cmp -s "${tmpdir}"/$f "${inputdir}"/$f || cp -p "${tmpdir}"/$f "${inputdir}"
|
43 |
done
|
43 |
done
|
44 |
|
44 |
|
|
|
45 |
# Note that we'd prefer to use wasaparse.h instead of wasaparse.hpp,
|
|
|
46 |
# but automake generates a dist list with wasaparse.hpp, so no choice.
|
|
|
47 |
|
45 |
# Fix the include line in y.tab.c (it wants to include y.tab.h, but we already
|
48 |
# Fix the include line in y.tab.c (it wants to include y.tab.h, but we already
|
46 |
# include it as wasaparse.h
|
49 |
# include it as wasaparse.hpp
|
47 |
(cd "${tmpdir}"; \
|
50 |
(cd "${tmpdir}"; \
|
48 |
sed -e 's/#include "y.tab.h"//' < y.tab.c > toto; \
|
51 |
sed -e 's/#include "y.tab.h"//' < y.tab.c > toto; \
|
49 |
mv -f toto y.tab.c)
|
52 |
mv -f toto y.tab.c)
|
50 |
|
53 |
|
51 |
cmp -s "${tmpdir}"/y.tab.c "${inputdir}"/wasaparse.cpp || \
|
54 |
cmp -s "${tmpdir}"/y.tab.c "${inputdir}"/wasaparse.cpp || \
|
52 |
cp -p "${tmpdir}"/y.tab.c "${inputdir}"/wasaparse.cpp
|
55 |
cp -p "${tmpdir}"/y.tab.c "${inputdir}"/wasaparse.cpp
|
53 |
cmp -s "${tmpdir}"/y.tab.h "${inputdir}"/wasaparse.h || \
|
56 |
cmp -s "${tmpdir}"/y.tab.h "${inputdir}"/wasaparse.hpp || \
|
54 |
cp -p "${tmpdir}"/y.tab.h "${inputdir}"/wasaparse.h
|
57 |
cp -p "${tmpdir}"/y.tab.h "${inputdir}"/wasaparse.hpp
|