]> granicus.if.org Git - yasm/commitdiff
Replace #line .. "lex.yy.c" with #line .. "output.c".
authorPeter Johnson <peter@tortall.net>
Sat, 5 Oct 2002 07:59:40 +0000 (07:59 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 5 Oct 2002 07:59:40 +0000 (07:59 -0000)
svn path=/trunk/yasm/; revision=743

config/ylwrap

index 5ea68e4fcd33b2bcc19f9ee975458b49060157f2..94c0f9ee986492d7aa91e4225241768c561745c1 100755 (executable)
@@ -113,12 +113,13 @@ if test $status -eq 0; then
           [\\/]* | ?:[\\/]*) target="$2";;
           *) target="../$2";;
         esac
+        from_rx=`echo "$from" | sed -e 's,\\\\,\\\\\\\\,g' -e 's,\\.,\\\\.,g'`
 
         # Edit out `#line' or `#' directives.  We don't want the
         # resulting debug information to point at an absolute srcdir;
         # it is better for it to just mention the .y file with no
         # path.
-        sed -e "/^#/ s,$input_rx,," "$from" > "$target" || status=$?
+        sed -e "/^#/ s,$input_rx,," -e "/^#/ s,$from_rx,$2," "$from" > "$target" || status=$?
       else
         # A missing file is only an error for the first file.  This
         # is a blatant hack to let us support using "yacc -d".  If -d