summaryrefslogtreecommitdiff
path: root/bin/bootstrap
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-31 10:49:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-31 10:49:32 +0200
commitfcb7a39abec7334bdba6f4ca0885cd3a0569c23c (patch)
treeaef191cd1859e4e478ed101eeba968be011a9379 /bin/bootstrap
parentab45fb200712480c729c353c00b3adb46eac0778 (diff)
moved mercurial-bin to .mercurial-bin
Diffstat (limited to 'bin/bootstrap')
-rwxr-xr-xbin/bootstrap10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/bootstrap b/bin/bootstrap
index 97bf94b..7609ed8 100755
--- a/bin/bootstrap
+++ b/bin/bootstrap
@@ -13,8 +13,8 @@ mkdir -p ~/var/tmp/incoming
if ( ! which hg &> /dev/null) {
echo 'Mercurial not found, fetching...'
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"
+ ssh derf.homelinux.org 'tar cz -C ~/var/packages_root .mercurial-bin' | tar xz
+ HG="$HOME/packages/.mercurial-bin/mercurial-1.0.1/hg"
}
# Fetch the core package, containing checklinks and pkg
@@ -25,5 +25,7 @@ $HG clone ssh://derf.homelinux.org/var/packages_root/core
# Create symlinks for pkg and checklinks
cd core
bin/checklinks
-cd ~/packages/mercurial-bin
-~/bin/checklinks
+if ([ -d $HOME/packages/.mercurial-bin ]) {
+ cd ~/packages/.mercurial-bin
+ ~/bin/checklinks
+}