[Groonga-commit] groonga/groonga at 559fdc7 [master] Use "sort --version-sort"

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Sep 21 23:08:21 JST 2015


Kouhei Sutou	2015-09-21 23:08:21 +0900 (Mon, 21 Sep 2015)

  New Revision: 559fdc7d0be2df982513486e6517fad5a891afdb
  https://github.com/groonga/groonga/commit/559fdc7d0be2df982513486e6517fad5a891afdb

  Message:
    Use "sort --version-sort"

  Modified files:
    autogen.sh

  Modified: autogen.sh (+8 -3)
===================================================================
--- autogen.sh    2015-09-21 23:01:31 +0900 (4dd9a8b)
+++ autogen.sh    2015-09-21 23:08:21 +0900 (0c409f7)
@@ -8,9 +8,14 @@ Darwin)
         if [ -d $homebrew_aclocal ]; then
           ACLOCAL_ARGS="$ACLOCAL_ARGS -I $homebrew_aclocal"
         fi
-        gettext_aclocal="$(echo /usr/local/Cellar/gettext/*/share/aclocal | awk '{ print $NF }')"
-        if [ -d "$gettext_aclocal" ]; then
-          ACLOCAL_ARGS="$ACLOCAL_ARGS -I $gettext_aclocal"
+        gettext_prefix=/usr/local/Cellar/gettext
+        if [ -d $gettext_prefix ]; then
+          gettext_aclocal=$(ls $gettext_prefix/*/share/aclocal | \
+                               sort --version-sort | \
+                               tail -n 1)
+          if [ -d $gettext_aclocal ]; then
+            ACLOCAL_ARGS="$ACLOCAL_ARGS -I $gettext_aclocal"
+          fi
         fi
 	;;
 FreeBSD)
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index