diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-19 20:18:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-19 20:18:58 +0200 |
commit | edf8df64f7a5c123f8d64e0afd9784563f9da886 (patch) | |
tree | 1488ab6e89313773bc1d55a820763beb4f583ac6 /bin/bootstrap |
initial commit
Diffstat (limited to 'bin/bootstrap')
-rwxr-xr-x | bin/bootstrap | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/bootstrap b/bin/bootstrap new file mode 100755 index 0000000..d45597a --- /dev/null +++ b/bin/bootstrap @@ -0,0 +1,22 @@ +#!/bin/zsh +# bootstrap - populate a home with the most necessary scripts +# After running this, other packages can be installed using 'pkg' + +# Without mercurial, this is pretty pointless +if ! which hg &> /dev/null; then + echo Mercurial not found! + exit 100 +fi + +# Make basic dirctories +mkdir -p ~/bin +mkdir -p ~/packages + +# Fetch the core package, containing checklinks and pkg +cd ~/packages +echo "fetching core" +hg clone ssh://derf.homelinux.org/packages/core + +# Create symlinks for pkg and checklinks +cd core +bin/checklinks |