ylwrap: fix C++ support for Bison
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 14 Jul 2012 14:57:02 +0000 (16:57 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 14 Jul 2012 14:58:45 +0000 (16:58 +0200)
commitfa10457919d195957bae104cce6be8ccebd53347
treec266e84ee4c3441bd8bcac929d73855f269c6dbd
parent4ce3d13166d90a8be9f00b66c9e3a8275cd0d0ac
ylwrap: fix C++ support for Bison

Fixes automake bug#7648.

The current logic of ylwrap is to call yacc in a sub directory, and
pull out of it all the files that were requested on its command line.
Reverse this approach: export *all* the files created in the
subdirectory, but rename them according to what the command says.
This way, extra files, such as position.hh, location.hh and stack.hh
for C++ parsers, but also parser.xml or parser.dot if XML or Dot
output is enabled, will be preserved.

* lib/ylwrap (pairlist): Remove.
(main loop): Don't loop over pairlist, but over the files in the
temporary directory.
* t/list-of-tests.mk (XFAIL_TESTS): Fixes t/yacc-bison-skeleton-cxx.sh.
* THANKS (James Bostock): Add, he reported bug#7648.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
THANKS
lib/ylwrap
t/list-of-tests.mk