ruby-changes:53743
From: odaira <ko1@a...>
Date: Sun, 25 Nov 2018 04:54:39 +0900 (JST)
Subject: [ruby-changes:53743] odaira:r65960 (trunk): * common.mk: revise r65767 because AIX's grep does not support -A
odaira 2018-11-25 04:54:32 +0900 (Sun, 25 Nov 2018) New Revision: 65960 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65960 Log: * common.mk: revise r65767 because AIX's grep does not support -A Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 65959) +++ common.mk (revision 65960) @@ -347,7 +347,7 @@ ruby.imp: $(COMMONOBJS) https://github.com/ruby/ruby/blob/trunk/common.mk#L347 $(Q){ \ $(NM) -Pgp $(COMMONOBJS) | \ awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^$(SYMBOL_PREFIX)(Init_|InitVM_|ruby_static_id_|.*_threadptr_|rb_ec_)|^\./{print $$1}'; \ - ($(CHDIR) $(srcdir) && exec grep -h -A1 ^MJIT_FUNC_EXPORTED cont.c gc.c thread*.c vm*.c) | \ + ($(CHDIR) $(srcdir) && for filename in cont.c gc.c thread*c vm*.c; do for linenum in `grep -n -h ^MJIT_FUNC_EXPORTED $${filename} | cut -f 1 -d :`; do sed -n "$${linenum},`expr $${linenum} + 1` p" $${filename}; done; done) | \ grep -e ^rb_ec_ -e ^rb_threadptr_ | sed 's/^\(rb_[a-zA-Z_0-9]*\).*/$(SYMBOL_PREFIX)\1/'; \ } | \ sort -u -o $@ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/