summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-20 12:23:27 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-20 12:23:27 +0000
commit41e800f6a8eb00147a366161b0893d97bb01b6b0 (patch)
tree92bb956913fc3d23273b2d8168feff6edcd0e91c /ext/ripper
parent52de8260968cf77dda5980e632c94900f1487428 (diff)
downloadruby-41e800f6a8eb00147a366161b0893d97bb01b6b0.tar.gz
ripper.c should have `#line "ripper.c"`, not `#line "parse.c"`
The order of sed commands in Makefile of ripper was wrong: it tries to replace `y.tab.c` with `ripper.c`, but before that, ytab.sed replaced `y.tab.c` with `parse.c`, which led to a wrong result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/depend2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend
index a6af96f080..d4f0a449d5 100644
--- a/ext/ripper/depend
+++ b/ext/ripper/depend
@@ -12,7 +12,7 @@ ripper.o: ripper.c
.y.c:
$(ECHO) compiling compiler $<
$(Q) $(BISON) -t -v -oy.tab.c $<
- $(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
+ $(Q) sed -e "/^#/s!y\.tab\.c!$@!" -f $(top_srcdir)/tool/ytab.sed y.tab.c > $@
@$(RM) y.tab.c
all: check