Author: cazfi
Date: Mon May  9 19:50:51 2016
New Revision: 32635

URL: http://svn.gna.org/viewcvs/freeciv?rev=32635&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:
    trunk/autogen.sh

Modified: trunk/autogen.sh
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/autogen.sh?rev=32635&r1=32634&r2=32635&view=diff
==============================================================================
--- trunk/autogen.sh    (original)
+++ trunk/autogen.sh    Mon May  9 19:50:51 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