summaryrefslogtreecommitdiff
path: root/bin/bootstrap
blob: 860a79f949e913e3791fdd8eda5d923ef04e69c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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; then
	echo Mercurial not found!
	exit 100
fi

# Make basic dirctories
mkdir -p ~/bin
mkdir -p ~/packages
mkdir -p ~/var/tmp/incoming

# Fetch the core package, containing checklinks and pkg
cd ~/packages
echo "fetching core"
hg clone https://derf.homelinux.org/~derf/hg.cgi/packages/core

# Create symlinks for pkg and checklinks
cd core
bin/checklinks