Re: Linux 2.4.18

David Relson
2002-02-26T01:09:23Z

At 05:20 PM 2/25/02, you wrote:
>David S. Miller wrote:
>
>>We can avoid this kind of mess in the future if the "-rc*" releases
>>really are "release candidates" instead of "just another diff".
>
>And how should EXTRAVERSION be accommodated?

An idea :-)

The actual release could be automated by a script that copies the release
candidate directory to a final directory, uses sed to correct EXTRAVERSION,
then creates the tarball. Using a script would ensure that EXTRAVERSION is
correctly handled and would create all necessary tarballs and signature files.

The "Kernel_Release" script would look something like:

mkdir /usr/src/linux-$1
( cd /usr/src/linux-$1-rc$2 ; tar cf - ) | ( cd /usr/src/linux-$1
; tar xf - )
sed s/EXTRAVERSION=.*/EXTRAVERSION/ <
/usr/src/linux-$1-rc$2/Makefile > /usr/src/linux-$1/Makefile
tar zcf linux-$1.tar.gz linux-$1
tar jcf linux-$1.tar.bz2 linux-$1
cp linux-$1.tar.gz linux-$1 jcf linux-$1.tar.bz2 linux-$1
ftp/pub/linux/kernel/v2.4
... whatever other magic is neded ...