libtool-patches
[Top][All Lists]
Advanced

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

version numbers with more than three digits


From: Ralf Wildenhues
Subject: version numbers with more than three digits
Date: Thu, 3 Feb 2005 08:46:33 +0100
User-agent: Mutt/1.5.6+20040907i

There was a bug report on this some time ago (in combination with more
problems, IIRC on Tru64; I only want to solve the trivial problem here).
Is there a technical reason to forbid version numbers greater than 999?

If not: OK to commit this to all branches?

Regards,
Ralf

        * ltmain.in (link mode): Allow version number components with
        more than three digits.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.53
diff -u -r1.334.2.53 ltmain.in
--- ltmain.in   2 Feb 2005 22:17:04 -0000       1.334.2.53
+++ ltmain.in   3 Feb 2005 07:38:50 -0000
@@ -3118,8 +3118,7 @@
 
        # Check that each of the things are valid numbers.
        case $current in
-       0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
-       *)
+       *[!0-9]* | 0[0-9]*)
          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 
1>&2
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
          exit $EXIT_FAILURE
@@ -3127,8 +3126,7 @@
        esac
 
        case $revision in
-       0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
-       *)
+       *[!0-9]* | 0[0-9]*)
          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 
1>&2
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
          exit $EXIT_FAILURE
@@ -3136,8 +3134,7 @@
        esac
 
        case $age in
-       0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
-       *)
+       *[!0-9]* | 0[0-9]*)
          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
          exit $EXIT_FAILURE




reply via email to

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