summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-03-09 22:51:20 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-03-09 22:51:20 +0000
commit9988eab1ebc1b48457bbf6df0829a3fe35f4b342 (patch)
treef7368f3c9429d06c0ddab839876d3e453fad6143 /Tools
parentUse PTHREAD_CFLAGS and PTHREAD_LIBS for the threaded parts. (diff)
Don't hard-code a version string to report to the chroots, pick it up
from a file so it can be more easily changed (and is more obvious so it doesn't get overlooked)
Notes
Notes: svn path=/head/; revision=55787
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/4/bindist/files/usr/bin/uname10
1 files changed, 8 insertions, 2 deletions
diff --git a/Tools/portbuild/4/bindist/files/usr/bin/uname b/Tools/portbuild/4/bindist/files/usr/bin/uname
index 11acad71df9d..2a241f49f8fe 100755
--- a/Tools/portbuild/4/bindist/files/usr/bin/uname
+++ b/Tools/portbuild/4/bindist/files/usr/bin/uname
@@ -29,6 +29,12 @@ fi
printed=0
+if [ -f /usr/bin/UNAME_VERSION ]; then
+ VERSION=$(cat /usr/bin/UNAME_VERSION)
+else
+ VERSION=4.5-RELEASE #XXX Perhaps make it the same as the host version?
+fi
+
if [ "$s" = 1 ]; then
echo -n "FreeBSD"
printed=1
@@ -48,13 +54,13 @@ fi
if [ "$r" = 1 ]; then
printsp $printed
- echo -n "4.0-CURRENT"
+ echo -n "${VERSION}"
printed=1
fi
if [ "$v" = 1 ]; then
printsp $printed
- echo -n "FreeBSD 4.0-CURRENT #0: Sun Dec 13 03:47:56 PST 1998 asami@bento.freebsd.org:/usr/src/sys/compile/BENTO"
+ echo -n "FreeBSD ${VERSION} #0: Sun Apr 1 02:34:56 PST 2002 asami@bento.freebsd.org:/usr/src/sys/compile/BENTO"
printed=1
fi