Rev 33947 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## ${RHOME}/tools/GETDISTNAMETOOLS_DIR=`echo ${0} | sed 's%/[^/][^/]*$%%'`(cd ${TOOLS_DIR}/..maj=`sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\1/' < VERSION`min=`sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\2/' < VERSION`rev=`sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\3/' < VERSION`if test -z "${rev}" ; thenres=R-${maj}.${min}elsey=`cut -d/ -f1 < date-stamp`m=`cut -d/ -f2 < date-stamp`d=`cut -d/ -f3 < date-stamp`if test "${rev}" = "Under development (unstable)"; thenres="R-devel_"${y}-${m}-${d}elserev=`echo ${rev} | tr [A-Z] [a-z]`res="R-${rev}_"${y}-${m}-${d}fifiecho ${res})