newvers.sh: Take the src/ dir as an argument instead of hard coding it.
authorSascha Wildner <saw@online.de>
Tue, 19 May 2009 14:04:12 +0000 (16:04 +0200)
committerSascha Wildner <saw@online.de>
Tue, 19 May 2009 14:04:51 +0000 (16:04 +0200)
commit7e7d17cb48838b48389fb990950f2959b9635e63
tree834e9c080a6d925e0d93f4cf0dcd32d6c7ca2bd4
parent5e9fb0cc0e3cefe8f556c5b6daea807f5c164a1c
newvers.sh: Take the src/ dir as an argument instead of hard coding it.

This fixes the issue where the last number in our version was included
only if /usr/src was present at build time, which resulted in different
output of uname -r, sysctl kern.{osrelease,version}, etc. across
different systems (e.g. "2.3.1-DEVELOPMENT" vs. "2.3-DEVELOPMENT").

This commit also removes the passing of ${KERN_IDENT} and ${IDENT} to
newvers.sh (both of which are not used by it) and performs some
additional cleanup.

Brought-to-my-attention-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Reviewed-by: dillon
sys/conf/kern.post.mk
sys/conf/newvers.sh