diff options
-rw-r--r-- | libjava/libtool-version | 2 | ||||
-rw-r--r-- | ltmain.sh | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libjava/libtool-version b/libjava/libtool-version index 9f34f83595e..114060c10fb 100644 --- a/libjava/libtool-version +++ b/libjava/libtool-version @@ -3,4 +3,4 @@ # a separate file so that version updates don't involve re-running # automake. # CURRENT:REVISION:AGE -7:0:0 +7rh:0:0 diff --git a/ltmain.sh b/ltmain.sh index 474423aaf10..562c32487d4 100644 --- a/ltmain.sh +++ b/ltmain.sh @@ -2589,7 +2589,7 @@ 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]) ;; + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9] | [1-9]rh | [1-9][0-9]rh) ;; *) $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 @@ -2615,7 +2615,7 @@ EOF ;; esac - if test $age -gt $current; then + if test $age != 0 && test $age -gt $current; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 @@ -2666,7 +2666,11 @@ EOF ;; linux) - major=.`expr $current - $age` + if test $age = 0; then + major=.$current + else + major=.`expr $current - $age` + fi versuffix="$major.$age.$revision" ;; |