From fcb7a39abec7334bdba6f4ca0885cd3a0569c23c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 31 May 2008 10:49:32 +0200 Subject: moved mercurial-bin to .mercurial-bin --- bin/bootstrap | 10 ++++++---- 1 file 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 +} -- cgit v1.2.3 From 38be454a16c22ea6260a7b8b226997902a84b695 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 31 May 2008 13:44:02 +0200 Subject: bin/pkg: pkg_info(): Also show hooks --- bin/pkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/pkg b/bin/pkg index 35e5946..f5767c6 100755 --- a/bin/pkg +++ b/bin/pkg @@ -178,6 +178,10 @@ pkg_info () { echo $LOG | grep -m1 'changeset:' | grep -E -o '[0-9]{1,}:[0-9a-f]*' info "Last update: " echo $LOG | grep -m1 'date:' | grep -Eo '[A-Z][a-z]{2}.*' + if ([ -d hooks ]) { + info "Hooks: " + ls hooks + } if ([ -r .deps ]) { info "Dependencies:\n" cat .deps -- cgit v1.2.3