]> Savannah Git Hosting - gnulib.git/commitdiff
git-version-gen: port to Solaris 10
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Aug 2017 00:03:55 +0000 (17:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Aug 2017 00:04:21 +0000 (17:04 -0700)
Problem reported by Dagobert Michelsen in:
http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html
* build-aux/git-version-gen (v_from_git):
Use expr instead of shell substitution.

ChangeLog
build-aux/git-version-gen

index eb71b1ad6f165dc3b9482ce264d4749728d188bf..4c34008054875570850fb346f2c802b5d138cc1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       git-version-gen: port to Solaris 10
+       Problem reported by Dagobert Michelsen in:
+       http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html
+       * build-aux/git-version-gen (v_from_git):
+       Use expr instead of shell substitution.
+
 2017-08-19  Bruno Haible  <bruno@clisp.org>
 
        host-cpu-c-abi: Improve detection of MIPS ABI.
index a8818b217bed437253847908d6637a19dfed01f4..b41f891cee2953d0e6b99eb9ed707db1d10ccdd0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Print a version string.
-scriptversion=2017-08-07.06; # UTC
+scriptversion=2017-08-20.18; # UTC
 
 # Copyright (C) 2007-2017 Free Software Foundation, Inc.
 #
@@ -167,7 +167,8 @@ then
     # tag or the previous older version that did not?
     #   Newer: v6.10-77-g0f8faeb
     #   Older: v6.10-g0f8faeb
-    case ${v#-g*} in
+    vprefix=`expr "X$v" : 'X\(.*\)-g[^-]*$'` || vprefix=$v
+    case $vprefix in
         *-*) : git describe is probably okay three part flavor ;;
         *)
             : git describe is older two part flavor