chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
pull-mail: Set svn:executable property.
[bin.git]
/
get-kernel
1
#! /bin/sh -e
2
3
if [ -z "$1" ]; then
4
echo >&2 "No version specified, stopping."
5
exit 1
6
fi
7
8
VERSION="$1"
9
MAJOR="${1%.*}"
10
11
rm -f linux
12
wget -c "ftp://ftp.kernel.org/pub/linux/kernel/v$MAJOR/linux-$VERSION.tar.bz2"
13
tar xjvf "linux-$VERSION.tar.bz2"
14
mv linux "linux-$VERSION"
15
ln -s "linux-$VERSION" linux