Changeset 499
- Timestamp:
- May 4, 2009, 4:49:20 PM (15 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r498 r499 1 2009-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 1 7 2009-04-29 <rybkin@lal.in2p3.fr> 393 2 8 -
CMT/HEAD/mgr/cmt_linux_version.sh
r465 r499 32 32 DISTRIBUTION=cel 33 33 ;; 34 Scientific*Linux*)34 Scientific*Linux*CERN*) 35 35 DISTRIBUTION=slc 36 36 ;; 37 # Scientific*Linux*CERN*) 37 Scientific*Linux*) 38 DISTRIBUTION=sl 39 ;; 40 Fedora*) 41 DISTRIBUTION=fedora 42 ;; 38 43 *) 39 44 DISTRIBUTION=slc … … 41 46 esac 42 47 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 ;; 51 60 esac 52 61 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 53 72 case "$VERSION" in 54 73 70|71|72) … … 56 75 ;; 57 76 esac 77 [ "$VERSION" ] || VERSION='00' 58 78 else 59 79 DISTRIBUTION="unknown" … … 61 81 fi 62 82 63 echo ${DISTRIBUTION} ${VERSION}83 echo ${DISTRIBUTION}-${VERSION}
Note: See TracChangeset
for help on using the changeset viewer.