[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
change version number checks
From: |
Peter O'Gorman |
Subject: |
change version number checks |
Date: |
Fri, 13 Aug 2004 00:08:38 +0900 |
User-agent: |
Mozilla Thunderbird 0.6 (Macintosh/20040502) |
Okay to apply?
Peter
--
Peter O'Gorman - http://www.pogma.com
Index: ChangeLog
2004-08-12 Peter O'Gorman <address@hidden>
* ltmain.in: Change the way we look for non-numeric arguments to
version information. Thanks to Daniel Reed.
from Maciej W. Rozycki <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.38
diff -u -3 -p -u -r1.334.2.38 ltmain.in
--- ltmain.in 3 Aug 2004 14:55:58 -0000 1.334.2.38
+++ ltmain.in 12 Aug 2004 15:07:11 -0000
@@ -3084,27 +3084,24 @@ EOF
# 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]) ;;
- *)
- $echo "$modename: CURRENT \`$current' is not a nonnegative integer"
1>&2
+ *[!0-9]*)
+ $echo "$modename: CURRENT \`$current' is not numeric" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
exit $EXIT_FAILURE
;;
esac
case $revision in
- 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
- *)
- $echo "$modename: REVISION \`$revision' is not a nonnegative integer"
1>&2
+ *[!0-9]*)
+ $echo "$modename: REVISION \`$revision' is not numeric" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
exit $EXIT_FAILURE
;;
esac
case $age in
- 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
- *)
- $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
+ *[!0-9]*)
+ $echo "$modename: AGE \`$age' is not numeric" 1>&2
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
exit $EXIT_FAILURE
;;
- change version number checks,
Peter O'Gorman <=