Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/newvers.sh
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| fi | fi | ||||
| RELEASE="${REVISION}-${BRANCH}" | RELEASE="${REVISION}-${BRANCH}" | ||||
| VERSION="${TYPE} ${RELEASE}" | VERSION="${TYPE} ${RELEASE}" | ||||
| if [ -z "${SYSDIR}" ]; then | if [ -z "${SYSDIR}" ]; then | ||||
| SYSDIR=$(dirname $0)/.. | SYSDIR=$(dirname $0)/.. | ||||
| fi | fi | ||||
| RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' ${PARAMFILE:-${SYSDIR}/sys/param.h}) | RELDATE=$(awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' ${PARAMFILE:-${SYSDIR}/sys/param.h}) | ||||
imp: This line failed the regression test. It should have been $3 instead of $$3. | |||||
| if [ -r "${SYSDIR}/../COPYRIGHT" ]; then | if [ -r "${SYSDIR}/../COPYRIGHT" ]; then | ||||
| year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT) | year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT) | ||||
| else | else | ||||
| year=$(date +%Y) | year=$(date +%Y) | ||||
| fi | fi | ||||
| # look for copyright template | # look for copyright template | ||||
| b=share/examples/etc/bsd-style-copyright | b=share/examples/etc/bsd-style-copyright | ||||
| for bsd_copyright in $b ../$b ../../$b ../../../$b /usr/src/$b /usr/$b | for bsd_copyright in $b ../$b ../../$b ../../../$b /usr/src/$b /usr/$b | ||||
| ▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines | |||||
This line failed the regression test. It should have been $3 instead of $$3.