diff options
Diffstat (limited to 'setver')
-rwxr-xr-x | setver | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6,16 +6,13 @@ # [doinc?] is 'n'. # if [doinc?] is 'r', reverse increment (decrement). # -ver=3.0.0 +ver=3.0.1 rel=1 tmped=/tmp/edver.tmp tmpspec=/tmp/edspec.tmp cmdf=/tmp/cmd.tmp skipinc=0 reverseinc=0 -v12=`echo $ver |cut -f1,2 -d'.'` -v3=`echo $ver |cut -f3 -d'.'` -vras=`echo $ver |sed -e 's/\.//g'` if [ $# -gt 0 ] then @@ -35,6 +32,9 @@ then fi fi fi +v12=`echo $ver |cut -f1,2 -d'.'` +v3=`echo $ver |cut -f3 -d'.'` +vras=`echo $ver |sed -e 's/\.//g'` distro=`echo $MACHTYPE |cut -d'-' -f2` if [ "$distro" = "suse" ] |