From: | Harry Putnam <reader@×××××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | [gentoo-user] Re: Append string on Kernel builds | ||
Date: | Sun, 18 Jan 2009 17:27:32 | ||
Message-Id: | 87ocy4a5jr.fsf@newsguy.com | ||
In Reply to: | Re: [gentoo-user] Re: Append string on Kernel builds by David Relson |
1 | David Relson <relson@×××××××××××××.com> writes: |
2 | |
3 | > How about an external tool? I use sed to fill in LOCALVERSION, e.g. |
4 | > |
5 | > V=$( date "+%m%d.%H%M" ) |
6 | > cp -p .config .config.old |
7 | > sed s/LOCALVERSION.*/LOCALVERSION=\"$V\"/ < .config.old > .config |
8 | > |
9 | > make vmlinux modules modules_install |
10 | |
11 | Ahaa ... that looks just like what I'm after... I didn't know about |
12 | the env variable LOCALVERSION. |
13 | |
14 | I haven't actually tried this yet but it looks like what I'm after.. |
15 | Thanks |