automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: APIVERSION definition


From: Alexandre Duret-Lutz
Subject: FYI: APIVERSION definition
Date: 10 Apr 2002 22:38:43 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

GNU sed understand '?' as a bare '?' character.
Thus the regex in the APIVERSION definition never matches.

% echo 1.6.1     | sed -e 's/^\([0-9]*\.[0-9]*[a-z]?\).*$/\1/'
1.6.1

I'm checking in the following.

2002-04-10  Alexandre Duret-Lutz  <address@hidden>

        * configure.in (APIVERSION): Fix definition.

--- configure.in        6 Mar 2002 06:47:46 -0000       1.105
+++ configure.in        10 Apr 2002 20:31:48 -0000
@@ -33,7 +33,7 @@
 #   are compatible.  So 1.5.1c is compatible with 1.5.
 # * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
 #   aren't the same.
-APIVERSION=`echo "$VERSION" | sed -e 
's/^\([[0-9]]*\.[[0-9]]*[[a-z]]?\).*$/\1/'`
+APIVERSION=`echo "$VERSION" | sed -e 
's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
 AC_SUBST(APIVERSION)
 
 # A versioned directory, defined here for convenience.
-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]