]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix get-version script which returned wrong tag in some situations.
authorShantanu Gadgil <shantanugadgil@yahoo.com>
Wed, 11 Feb 2015 20:16:59 +0000 (20:16 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Wed, 11 Feb 2015 20:16:59 +0000 (20:16 +0000)
bld/get-version

index c246a3cc6a478d996c7f2abe02fc0bd9c5f7574c..7ab75db729ac4fb1865994f3d614f2001d265266 100755 (executable)
@@ -20,7 +20,7 @@ else
      vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep ^v[0-9]`
 
      if [ $? -eq 0 ]; then
-         echo "${vers}" | sort | head -n 1 | sed 's/^v//'
+         echo "${vers}" | sort -r | head -n 1 | sed 's/^v//'
      else
          cat $1/VERSION
      fi