[前][次][番号順一覧][スレッド一覧]

ruby-changes:58135

From: Yusuke <ko1@a...>
Date: Sat, 5 Oct 2019 18:29:03 +0900 (JST)
Subject: [ruby-changes:58135] 96452373fd (master): ext/json/parser/prereq.mk: use `if $. == 1` instead of a hacky code

https://git.ruby-lang.org/ruby.git/commit/?id=96452373fd

From 96452373fd192ada49c831386e033531e2263a52 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 5 Oct 2019 18:28:19 +0900
Subject: ext/json/parser/prereq.mk: use `if $. == 1` instead of a hacky code


diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk
index 04aeac9..37bacc3 100644
--- a/ext/json/parser/prereq.mk
+++ b/ext/json/parser/prereq.mk
@@ -6,6 +6,6 @@ RAGEL = ragel https://github.com/ruby/ruby/blob/trunk/ext/json/parser/prereq.mk#L6
 	$(RAGEL) -G2 $<
 	$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
 	-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
-	-e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */" + $$_' $@
+	-e '$$_ = "/* This file is automatically generated from parser.rl by using ragel */" + $$_ if $$. == 1' $@
 
 parser.c:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]