[Groonga-commit] groonga/groonga [master] apt yum: use ruby instead of perl

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 27日 (水) 13:40:00 JST


HAYASHI Kentaro	2012-06-27 13:40:00 +0900 (Wed, 27 Jun 2012)

  New Revision: 586ba2d0d7097284a662b75a51d963d315610e5b
  https://github.com/groonga/groonga/commit/586ba2d0d7097284a662b75a51d963d315610e5b

  Log:
    apt yum: use ruby instead of perl

  Modified files:
    packages/pkg-check-util.sh

  Modified: packages/pkg-check-util.sh (+1 -1)
===================================================================
--- packages/pkg-check-util.sh    2012-06-27 13:25:52 +0900 (b1f940a)
+++ packages/pkg-check-util.sh    2012-06-27 13:40:00 +0900 (3fce83c)
@@ -59,7 +59,7 @@ host_address ()
 {
     ifconfig_result=`LANG=C /sbin/ifconfig`
     inet_addr=`echo "$ifconfig_result" | grep "inet addr:192"`
-    address=`echo $inet_addr | perl -ne 'if($_=~/inet addr\:(.+?)\s/){print "$1"}'`
+    address=`echo $inet_addr | ruby -ne '/inet addr:(.+?)\s/ =~ $_ && puts($1)'`
     HOST_ADDRESS=$address
 }
 
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index