lkml.org 
[lkml]   [2004]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[HOWTO] Fetching current kernels with rsync and cvs
Hi!

If you want to, you can also fetch current Linux kernels with rsync and
cvs using following script. Script will currently create $HOME/src/bkcvs,
$HOME/src/linux-2.4 and $HOME/src/linux-2.5 directories, which will hold
about 1100 megabytes of data. Run $HOME/bin/pull-kernels again later to
keep source trees up to date.

Best regards,
Petri Koistinen


mkdir -p $HOME/bin $HOME/src
cat >$HOME/bin/pull-kernels <<"EOF"
#!/bin/bash

HOST=rsync.kernel.org

rsync -avz --delete rsync://$HOST/pub/scm/linux/kernel/bkcvs $HOME/src
pushd $PWD >/dev/null
cd $HOME/src/bkcvs
for kernel_version in `ls -d linux*`
do
echo $kernel_version
[ -d $HOME/src/$kernel_version ] && (cd $HOME/src/$kernel_version && cvs update -dPA 2>/dev/null | grep -v '^?')
[ -d $HOME/src/$kernel_version ] || (cd $HOME/src && cvs -d $HOME/src/bkcvs co $kernel_version)
done
popd >/dev/null
EOF
chmod +x $HOME/bin/pull-kernels
$HOME/bin/pull-kernels


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

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.024 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site