summaryrefslogtreecommitdiff
path: root/bin/bootstrap
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-07-07 16:11:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-07-07 16:11:00 +0200
commitab9f94977b481af0ba80150e475fad2ad9e98a06 (patch)
treedeca11a41c6d0395b77143bd8011b2d7982456dd /bin/bootstrap
parentd910a7b9ba41ea04ad40abe8c5ccd8db641d60b7 (diff)
Moved bootstrap to include
Diffstat (limited to 'bin/bootstrap')
-rwxr-xr-xbin/bootstrap53
1 files changed, 0 insertions, 53 deletions
diff --git a/bin/bootstrap b/bin/bootstrap
deleted file mode 100755
index e2d7e17..0000000
--- a/bin/bootstrap
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env zsh
-# bootstrap - populate a home with the most necessary scripts
-# After running this, other packages can be installed using 'pkg'
-
-HG=hg
-
-# zsh keeps complaining about not having a configuration,
-# so let's be kind and give it an empty one.
-if ! [[ -e $HOME/.zshrc ]] {
- RCEMPTY=yes
- touch $HOME/.zshrc
-}
-
-# Make basic dirctories
-mkdir -p ~/bin
-mkdir -p ~/lib
-mkdir -p ~/packages/.collected/{bin,doc,man/man{1..8},etc,include}
-mkdir -p ~/var/tmp/incoming
-
-if ( ! which python &> /dev/null ) {
- echo "No Python found. Sorry."
- exit 200
-}
-
-if ( ! which hg &> /dev/null) {
- echo 'Mercurial not found, installing...'
- cd ~/packages
- ssh derf.homelinux.org 'tar cz -C ~/var/packages_root .mercurial-bin' | tar xz
- HG="$HOME/packages/.mercurial-bin/mercurial-1.0.1/hg"
-}
-
-cd ~/packages
-echo "fetching core"
-$HG clone ssh://derf.homelinux.org/var/packages_root/core
-
-cd core
-bin/checklinks
-for i in bin/*(*); {
- ln -s ../packages/core/$i $HOME/$i
-}
-
-if ([ -d $HOME/packages/.mercurial-bin ]) {
- cd ~/packages/.mercurial-bin
- ~/bin/checklinks
-}
-
-[ "$RCEMPTY" = yes ] && rm $HOME/.zshrc
-
-PATH=$HOME/bin:$PATH
-
-rehash
-
-pkg add zsh