diff options
author | Nikolai Weibull <now@bitwi.se> | 2012-05-16 18:16:41 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-05-16 18:26:26 +0200 |
commit | b6359a5f310160c8a4a2e8e8c0105408412ce400 (patch) | |
tree | e1f04b788fcebfab10c74ab68e512da11eb4bd3b /THANKS | |
parent | 0ce63a38ab7c87502504ba7d2319886d4f4a7d15 (diff) | |
download | automake-b6359a5f310160c8a4a2e8e8c0105408412ce400.tar.gz |
ylwrap: preserve subdirectories in "#line" munging
If Automake is used in non-recursive mode and one of the inputs is a
yacc file, for example, "src/grammar.y", ylwrap will remove too many
directories from the output file when it adjusts the paths in it.
This results in #line directives referring to "grammar.y" instead of
"src/grammar.y".
This is a result of $input_rx simply taking all the directory
components of the absolute input path and removing them.
One solution is to store the path passed to ylwrap and replace
$input_rx with it. This is what we do.
Suggestion and initial patch (without tests) by Nikolai Weibull:
<http://lists.gnu.org/archive/html/automake/2012-05/msg00013.html>
Final patch by Stefano Lattarini.
* lib/ylwrap ($input_sub_rx): New.
When munging the #line directives, substitute '$input_rx' with it,
instead of stripping it altogether.
Adjust comments.
* t/yacc-line.sh, t/lex-line: Adjust and extend.
* NEWS, THANKS: Update.
Copyright-paperwork-exempt: yes
Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -269,6 +269,7 @@ Nicolas Joly njoly@pasteur.fr Nicolas Thiery nthiery@Icare.mines.edu NightStrike nightstrike@gmail.com Nik A. Melchior nam1@cse.wustl.edu +Nikolai Weibull now@bitwi.se NISHIDA Keisuke knishida@nn.iij4u.or.jp Noah Friedman friedman@gnu.ai.mit.edu Norman Gray norman@astro.gla.ac.uk |