[Frugalware-git] frugalware-current: kernel.sh: add _F_scm_git_cloneopts

Miklos Vajna vmiklos at frugalware.org
Mon Nov 30 19:19:06 CET 2009

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=59ba71eeb324ba056f78f2e7d270c8871a1afd50

commit 59ba71eeb324ba056f78f2e7d270c8871a1afd50
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Mon Nov 30 18:51:53 2009 +0100

kernel.sh: add _F_scm_git_cloneopts

Usage is easy: if you regularly build a kernel from git, then it's handy
to have a clone under ~/git, then you don't have to re-download the
kernel repo again and again, as long as you're doing a host build.

The option is not set if the dir under ~/git is missing.

NOTE: You are not forced to keep the clone in ~/git up to date, having
an outdated repo can speed up the build as well.

diff --git a/source/include/kernel.sh b/source/include/kernel.sh
index ccc56b8..1bf71d7 100644
--- a/source/include/kernel.sh
+++ b/source/include/kernel.sh
@@ -172,6 +172,7 @@ if Fuse $USE_DEVEL; then
signatures=('' '' '')
+	[ -d $HOME/git/linux-2.6 ] && _F_scm_git_cloneopts="--reference $HOME/git/linux-2.6"
if ! echo $pkgver |grep -q -- '\.g'; then

More information about the Frugalware-git mailing list