r3471 - jhalfs/trunk/common/libs

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri Sep 14 09:47:18 PDT 2007


Author: manuel
Date: 2007-09-14 10:47:17 -0600 (Fri, 14 Sep 2007)
New Revision: 3471

Modified:
   jhalfs/trunk/common/libs/func_check_version.sh
Log:
Changed grep version check. Thanks to Dan Nicholson for the fix.

Modified: jhalfs/trunk/common/libs/func_check_version.sh
===================================================================
--- jhalfs/trunk/common/libs/func_check_version.sh	2007-08-30 17:41:40 UTC (rev 3470)
+++ jhalfs/trunk/common/libs/func_check_version.sh	2007-09-14 16:47:17 UTC (rev 3471)
@@ -93,7 +93,7 @@
   check_version "2.8"     "$(diff --version  | head -n1 | cut -d" " -f4)"      "DIFF"
   check_version "4.1.20"  "$(find --version  | head -n1 | cut -d" " -f4)"      "FIND"
   check_version "3.0"     "$(gawk --version  | head -n1 | cut -d" " -f3)"      "GAWK"
-  check_version "2.5"     "$(grep --version  | head -n1 | cut -d" " -f4)"      "GREP"
+  check_version "2.5"     "$(grep --version  | head -n1 | awk '{print $NF}')"  "GREP"
   check_version "1.2.4"   "$(gzip --version 2>&1 | head -n1 | cut -d" " -f2)"  "GZIP"
   check_version "3.79.1"  "$(make --version  | head -n1 | cut -d " " -f3 | cut -c1-4)"  "MAKE"
   check_version "2.5.4"   "$(patch --version | head -n1 | cut -d" " -f2)"      "PATCH"




More information about the alfs-log mailing list