(cd ../../.. maj=`cat VERSION | sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\1/'` min=`cat VERSION | sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\2/'` rev=`cat VERSION | sed 's/\([^ .]*\).\([^ ]*\) *\(.*\)/\3/'` y=`cat date-stamp | cut -d/ -f1` m=`cat date-stamp | cut -d/ -f2` d=`cat date-stamp | cut -d/ -f3` echo "#define R_MAJOR \"${maj}\"" echo "#define R_MINOR \"${min}\"" echo "#define R_STATUS \"${rev}\"" echo "#define R_YEAR \"${y}\"" echo "#define R_MONTH \"${m}\"" echo "#define R_DAY \"${d}\"")