Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 May 2003 23:33:36 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        ru@FreeBSD.org
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src Makefile.inc1
Message-ID:  <20030504.233336.37439629.imp@bsdimp.com>
In-Reply-To: <20030504072614.GA71034@sunbay.com>
References:  <200305040414.h444EB9a015741@repoman.freebsd.org> <20030504072614.GA71034@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20030504072614.GA71034@sunbay.com>
            Ruslan Ermilov <ru@FreeBSD.org> writes:
: awk '$1 == "#define" && $2 == "__FreeBSD_version" { print $3 }' /usr/include/osreldate.h

awk '/^#d.*__FreeBSD_version/ { print $3 }' /usr/include/osreldate.h

is a lot shorter.

OSRELDATE!=awk '/^\#d.*__FreeBSD_version/ { print $$3 }' /usr/include/osreldate.h

should do the trick.  Not sure that's the right thing to commit,
however...  I wanna sleep on it...

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030504.233336.37439629.imp>