From 03ac22da0ce225ca12694a9b80003ea708a64320 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 6 Mar 2011 09:19:11 -0800 Subject: [PATCH] install - Add the src-create-shallow directive to Makefile.usr * Add the src-create-shallow directive to Makefile.usr Submitted-by: John Marino --- etc/Makefile.usr | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/etc/Makefile.usr b/etc/Makefile.usr index 8b7c43d271..bf0e48cbee 100644 --- a/etc/Makefile.usr +++ b/etc/Makefile.usr @@ -31,6 +31,7 @@ help all: .endif .else @echo " make src-create - fetch initial src repo from the net" + @echo " make src-create-shallow - fetch initial history-free src repo" @echo " make src-update - update your src repo from the net" .endif @echo "" @@ -78,6 +79,18 @@ src-create: cd ${.CURDIR}/src && git checkout master cd ${.CURDIR}/src && git pull +src-create-shallow: + @echo "If problems occur you may have to rm -rf src and try again." + @echo "" + mkdir -p ${.CURDIR}/src + cd ${.CURDIR}/src && git init + cd ${.CURDIR}/src && \ + git remote add origin git://git.dragonflybsd.org/dragonfly.git + cd ${.CURDIR}/src && git fetch --depth=1 origin + cd ${.CURDIR}/src && git branch master origin/master + cd ${.CURDIR}/src && git checkout master + cd ${.CURDIR}/src && git pull + src-checkout: cd ${.CURDIR}/src && git checkout master -- 2.41.0