diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-03-09 22:51:20 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-03-09 22:51:20 +0000 |
commit | 9988eab1ebc1b48457bbf6df0829a3fe35f4b342 (patch) | |
tree | f7368f3c9429d06c0ddab839876d3e453fad6143 /Tools | |
parent | 006f3e56bc19cfdbe01dbba9fb9aea415d9f885a (diff) | |
download | ports-9988eab1ebc1b48457bbf6df0829a3fe35f4b342.tar.gz ports-9988eab1ebc1b48457bbf6df0829a3fe35f4b342.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/4/bindist/files/usr/bin/uname | 10 |
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 |