Changeset 499 for CMT/HEAD


Ignore:
Timestamp:
May 4, 2009, 4:49:20 PM (15 years ago)
Author:
rybkin
Message:

See C.L. 394

Location:
CMT/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r498 r499  
     12009-05-04    <rybkin@lal.in2p3.fr> 394
     2       
     3        * mgr/cmt_linux_version.sh: Take into account Fedora distribution, make
     4        the output of the form DISTRIBUTION-VERSION where VERSION has the `.'s
     5        unchanged so that is possible to filter the major and minor versions later
     6       
    172009-04-29    <rybkin@lal.in2p3.fr> 393
    28       
  • CMT/HEAD/mgr/cmt_linux_version.sh

    r465 r499  
    3232            DISTRIBUTION=cel
    3333            ;;
    34         Scientific*Linux*)
     34        Scientific*Linux*CERN*)
    3535            DISTRIBUTION=slc
    3636            ;;
    37 #       Scientific*Linux*CERN*)
     37        Scientific*Linux*)
     38            DISTRIBUTION=sl
     39            ;;
     40        Fedora*)
     41            DISTRIBUTION=fedora
     42            ;;
    3843        *)
    3944            DISTRIBUTION=slc
     
    4146    esac
    4247    VERSION=""
    43     while [ -n "$a" ]; do
    44         t="${a#?}"              # all but first char of $a
    45         c=${a%"${t}"}           # first char of $a
    46         a="${t}"                # remove first char from $a
    47         case "$c" in
    48             [0-9])
    49             VERSION="${VERSION}${c}"
    50             ;;
     48    release=
     49    for w in `echo $a`; do
     50        case "$w" in
     51            release)
     52                release=y
     53                ;;
     54            *)
     55                if [ "$release" ]; then
     56                    VERSION=$w
     57                    release=
     58                fi
     59                ;;
    5160        esac
    5261    done
     62#     while [ -n "$a" ]; do
     63#       t="${a#?}"              # all but first char of $a
     64#       c=${a%"${t}"}           # first char of $a
     65#       a="${t}"                # remove first char from $a
     66#       case "$c" in
     67#           [0-9])
     68#           VERSION="${VERSION}${c}"
     69#           ;;
     70#       esac
     71#     done
    5372    case "$VERSION" in
    5473        70|71|72)
     
    5675            ;;
    5776    esac
     77    [ "$VERSION" ] || VERSION='00'
    5878else
    5979    DISTRIBUTION="unknown"
     
    6181fi
    6282
    63 echo ${DISTRIBUTION}${VERSION}
     83echo ${DISTRIBUTION}-${VERSION}
Note: See TracChangeset for help on using the changeset viewer.