diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-24 19:54:32 +0000 |
---|---|---|
committer | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-24 19:54:32 +0000 |
commit | a5e9182230680f2a7085d31a2d15339cd46b7f5a (patch) | |
tree | 504c047a0a78425d2acad6be60c66666f57a0354 | |
parent | 865313dfac2f865c9a0d5855b11797d2ec4347c6 (diff) | |
download | ruby-a5e9182230680f2a7085d31a2d15339cd46b7f5a.tar.gz |
* common.mk: revise r65767 because AIX's grep does not support -A
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | common.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -347,7 +347,7 @@ ruby.imp: $(COMMONOBJS) $(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 $@ |