Use ${SYSDIR} as the reference pointer instead of specifying relative path directly.

Reported by:	jenkins via Olivér Pintér (on github)
This commit is contained in:
delphij 2014-11-14 18:44:13 +00:00
parent 1a17154ef9
commit b9d43d1472

View File

@ -52,7 +52,7 @@ else
fi
b=share/examples/etc/bsd-style-copyright
year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ../../COPYRIGHT)
year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT)
# look for copyright template
for bsd_copyright in ../$b ../../$b ../../../$b /usr/src/$b /usr/$b
do