Browse Source

* autogen.sh: Fix unportable "+" sed regexp in gettext_ver
calculation. Reported by vlad@geekizoid.com.

Andrew V. Samoilov 22 years ago
parent
commit
46349cbf6e
2 changed files with 7 additions and 2 deletions
  1. 5 0
      ChangeLog
  2. 2 2
      autogen.sh

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2003-02-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
+
+	* autogen.sh: Fix unportable "+" sed regexp in gettext_ver
+	calculation.  Reported by vlad@geekizoid.com.
+
 2003-01-31  Pavel Roskin  <proski@gnu.org>
 2003-01-31  Pavel Roskin  <proski@gnu.org>
 
 
 	* syntax/nroff.syntax: Make colors more compatible with the
 	* syntax/nroff.syntax: Make colors more compatible with the

+ 2 - 2
autogen.sh

@@ -33,8 +33,8 @@ gettext_ver=`$GETTEXTIZE --version | \
   sed '2,$d;			# remove all but the first line
   sed '2,$d;			# remove all but the first line
        s/.* //;			# take text after the last space
        s/.* //;			# take text after the last space
        s/-.*//;			# strip "-pre" or "-rc" at the end
        s/-.*//;			# strip "-pre" or "-rc" at the end
-       s/\([^.]\+\)/0\1/g;	# prepend 0 to every token
-       s/0\([^.][^.]\)/\1/g;	# trim 0 from long lokens
+       s/\([^.][^.]*\)/0\1/g;	# prepend 0 to every token
+       s/0\([^.][^.]\)/\1/g;	# trim 0 from long tokens
        s/\.//g;			# remove dots
        s/\.//g;			# remove dots
        '`
        '`