#!/usr/bin/env 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) { echo Mercurial not found! exit 100 } # Make basic dirctories mkdir -p ~/bin mkdir -p ~/lib mkdir -p ~/packages mkdir -p ~/var/tmp/incoming # Fetch the core package, containing checklinks and pkg cd ~/packages echo "fetching core" hg clone ssh://derf.homelinux.org/var/packages_root/core # Create symlinks for pkg and checklinks cd core bin/checklinks