Re: Kernel build automation help

Riley Williams (rhw@BigFoot.Com)
Fri, 23 Apr 1999 10:55:16 +0100 (GMT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--1421910094-1117673207-924861316=:15637
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Mike.

On Thu, 22 Apr 1999, Mike A. Harris wrote:

> Assuming that kernel sources are properly installed in
> /usr/src/linux from a clean tarball, and are unmodified, what is
> the easiest way to grab the kernel version number of the
> installed source?

> I've been trying to grab it from the top level makefile, but my
> script writing abilities seem to be lacking.

> Anyone have a few lines of simple bash code to get the kernel
> source version?

Enclosed is the bash script I use for this purpose. It deals with all
the formats I've seen for storing the said details...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

--1421910094-1117673207-924861316=:15637
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=kver
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.04.9904231055160.15637@ps.cus.umist.ac.uk>
Content-Description:
Content-Disposition: attachment; filename=kver

IyEvYmluL2Jhc2gNCmlmIFsgJCMgLWVxIDAgXTsgdGhlbg0KICAgIGVjaG8g
IlVzYWdlOiBgYmFzZW5hbWUgJDBgIGRpcmVjdG9yeS4uLiINCiAgICBleGl0
IDI1NQ0KZmkNCmZ1bmN0aW9uIGdyYWIoKSB7DQogICAgaGVhZCAkMS9NYWtl
ZmlsZQkJXA0KCXwgZ3JlcCAnID0gJwkJXA0KCXwgZ3JlcCAtdiAtaSBhcmNo
CVwNCgl8IGN1dCAtZCAnPScgLWYgMglcDQoJfCBzZWQgJ3MvIC8vZycJCVwN
Cgl8IHRyICdcbicgJyAnDQogICAgZWNobw0KfQ0KZnVuY3Rpb24gZm9ybWF0
KCkgew0KICAgIGxvY2FsIE1BSk9SIE1JTk9SIFBBVENIIEVYVFJBDQogICAg
d2hpbGUgcmVhZCBNQUpPUiBNSU5PUiBQQVRDSCBFWFRSQSA7IGRvDQoJaWYg
WyAteiAiJEVYVFJBIiBdOyB0aGVuDQoJICAgIHByaW50ZiAnJXMuJXMuJXNc
bicgJE1BSk9SICRNSU5PUiAkUEFUQ0gNCgllbHNlDQoJICAgIHByaW50ZiAn
JXMuJXMuJXMtJXNcbicgJE1BSk9SICRNSU5PUiAkUEFUQ0ggJEVYVFJBDQoJ
ZmkNCglFWFRSQT0nJw0KICAgIGRvbmUNCn0NCmZvciBESVIgZG8NCiAgICBn
cmFiICRESVIgfCBmb3JtYXQNCmRvbmUNCg==
--1421910094-1117673207-924861316=:15637--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/