Re: Why from there? A rethink...

ketil@ii.uib.no
18 May 1998 11:04:25 +0200


Riley Williams <rhw@bigfoot.com> writes:

> > #!/bin/sh
> > #
> > # Run this script in /usr/src/ to properly unpack a new Linux kernel.
> > # Give it the archive name as an argument. Note that it is much better
> > # to use patches, unless you get more than 15 versions behind.
> > #
> cd /usr/src
> if [ -L linux ]; then
> rm -f linux
> else if [ -d linux ]; then
# get the version from the makefile, and rename accordingly
# (completely untested, so sue me)
eval `egrep '(^VERSION =|^PATCHLEVEL =|^SUBLEVEL =)' linux/Makefile | tr -d " "`
> mv linux linux-${VERSION}.${PATCHLEVEL}.${SUBLEVEL}
fi
> fi
> > BN=`basename $1 .tar.bz2`
> > bunzip2 -cd $1 | tar xf -
> > mv linux $BN
> > ln -s $BN linux

-- 
If I haven't seen further, it is by standing in the footprints of giants

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu