summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-10 19:28:15 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-10 19:28:15 +0200
commit82d716d01dee0329af7df5e67b55558fe3ff1466 (patch)
treedd8cc07e9ccee318b7c4af04e5ed74ddb1aae654 /include
parent014f58d39b9e9607ef957b9d0231d00ea429695e (diff)
include/bootstrap: Give PKG_ROOT as argument
Diffstat (limited to 'include')
-rwxr-xr-xinclude/bootstrap14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/bootstrap b/include/bootstrap
index 658735f..65ec363 100755
--- a/include/bootstrap
+++ b/include/bootstrap
@@ -3,6 +3,14 @@
# After running this, other packages can be installed using 'pkg'
typeset -i rcempty=0
+typeset PKG_ROOT
+
+if [[ -n $1 ]] {
+ PKG_ROOT=$1
+} else {
+ echo "Usage: ./bootstrap PKG_ROOT"
+ exit 100
+}
# zsh keeps complaining about not having a configuration,
# so let's be kind and give it an empty one.
@@ -22,11 +30,13 @@ fi
cd ~/packages
echo "fetching core..."
-git clone ssh://derf.homelinux.org/var/packages_root/core
+git clone $PKG_ROOT/core
-cd core
+cd core || exit 1
bin/checklinks
bin/pkg eval populate_collected core
bin/pkg eval exec_hook core post-add
(( rcempty )) && rm ~/.zshrc
+
+echo "PKG_ROOT='$PKG_ROOT'" > .pkg.conf