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 19:18:43 +0000 (21:18 +0200)
commit444a56fce9daedad4fe5ee03ecca4e212d152d43
treee1d6c05092e6ff80b035a9c6673baf2278558fe7
parentce38cd7aacaf701e5395d0ac2f54d281d4423909
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