diff options
author | kris <kris@FreeBSD.org> | 2002-03-09 22:51:20 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-03-09 22:51:20 +0000 |
commit | 5845b44f648899975ac34442b54fc65ac9476dce (patch) | |
tree | c6eb6559035ea7ddfe7ba6f176c7ff99572cc6a9 /Tools/portbuild/4 | |
parent | d198ef61adb62a0a7944cd3d4675a9b94dd23577 (diff) | |
download | FreeBSD-ports-5845b44f648899975ac34442b54fc65ac9476dce.zip FreeBSD-ports-5845b44f648899975ac34442b54fc65ac9476dce.tar.gz |
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)
Diffstat (limited to 'Tools/portbuild/4')
-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 11acad7..2a241f4 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 |