Author: cazfi
Date: Tue May 17 00:53:15 2016
New Revision: 32731

URL: http://svn.gna.org/viewcvs/freeciv?rev=32731&view=rev
Log:
Fixed autogen.sh tool version detection when the terminal does not support some
characters that full output of --version gives, but the version number is not
affected.

See bug #24636

Modified:
    branches/S2_5/autogen.sh

Modified: branches/S2_5/autogen.sh
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/autogen.sh?rev=32731&r1=32730&r2=32731&view=diff
==============================================================================
--- branches/S2_5/autogen.sh    (original)
+++ branches/S2_5/autogen.sh    Tue May 17 00:53:15 2016
@@ -178,7 +178,7 @@
   }
 
   # The following line is carefully crafted sed magic
-  pkg_version=`$PACKAGE --version 2>&1|grep -v " line " |head -n 1|sed 
's/([^)]*)//g;s/^[a-zA-Z\.\ \-]*//;s/ .*$//'`
+  pkg_version=`$PACKAGE --version 2>&1|grep -a -v " line " |head -n 1|sed 
's/([^)]*)//g;s/^[a-zA-Z\.\ \-]*//;s/ .*$//'`
   debug "pkg_version $pkg_version"
   pkg_major=`echo $pkg_version | cut -d. -f1`
   pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2`


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to