aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2005-01-12 21:28:25 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2005-01-12 21:28:25 +0000
commit3952015f409925eeb777f0bbf4ef87d41a94396f (patch)
tree5ff95ea10fbd85de916026aaaa3c07dd8f8a925a
parent4227c68d25f1f352a68e9aef44bf207561f70584 (diff)
downloadsrc-3952015f409925eeb777f0bbf4ef87d41a94396f.tar.gz
src-3952015f409925eeb777f0bbf4ef87d41a94396f.zip
Reflect reality when a sudo user builds/installs a kernel. [1]
/* -> /*- for copyright notices. [2] [1]: PR: 41317 Submitted by: marck (original version) [2]: Discussed with: imp
Notes
Notes: svn path=/head/; revision=140137
-rw-r--r--sys/conf/newvers.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 3484f45920cd..ae7448772e61 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -63,7 +63,7 @@ done
# no copyright found, use a dummy
if [ X"$COPYRIGHT" = X ]; then
- COPYRIGHT="/*
+ COPYRIGHT="/*-
* Copyright (c) 1992-$year The FreeBSD Project.
* All rights reserved.
*
@@ -81,7 +81,8 @@ then
fi
touch version
-v=`cat version` u=${USER-root} d=`pwd` h=${HOSTNAME-`hostname`} t=`date`
+u=`/usr/bin/logname`
+v=`cat version` u=${u:-root} d=`pwd` h=${HOSTNAME-`hostname`} t=`date`
i=`${MAKE:-make} -V KERN_IDENT`
cat << EOF > vers.c
$COPYRIGHT