The R Project SVN R

Rev

Rev 5185 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/sh
#
# ${RHOME}/tools/GETVERSION

TOOLS_DIR=`echo ${0} | sed 's%/[^/][^/]*$%%'`
awk '{
  if ($0 ~ /R_MAJOR/) printf "%s.", $3;
  if ($0 ~ /R_MINOR/) printf "%s\n", $3;
}' ${TOOLS_DIR}/../src/include/Rversion.h.in | sed -e 's/"//g'