diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-29 16:00:18 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-29 16:00:18 +0200 |
commit | d0c58250344711a696bd9defc75f1e928573660e (patch) | |
tree | aa09522be4c69901e0b0dbe8b7f974a0d5615f11 /include/bootstrap | |
parent | 0eb91cc34bc2f9f13b22d796083d5794c604efd3 (diff) |
Renamed $PDIR to $PKG_DIR for more consistency
Diffstat (limited to 'include/bootstrap')
-rwxr-xr-x | include/bootstrap | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/bootstrap b/include/bootstrap index 2dbeb4a..793c6f3 100755 --- a/include/bootstrap +++ b/include/bootstrap @@ -6,17 +6,17 @@ # and also have an excuse for using zsh here :P typeset -i rcempty=0 -typeset PKG_ROOT PDIR default_path='~/packages' +typeset PKG_ROOT PKG_DIR default_path='~/packages' if [[ -n $1 ]] { PKG_ROOT=$1 - PDIR=${~${2-$default_path}} + PKG_DIR=${~${2-$default_path}} } else { cat <<- meow - Usage: ./bootstrap PKG_ROOT [PDIR] + Usage: ./bootstrap PKG_ROOT [PKG_DIR] PKG_ROOT is an URI, either of the form proto://host/path, or just /path Note: The path must be absolute, it may not contain a literal ~ - PDIR is the path where pkg and all further packages will be installed, + PKG_DIR is the path where pkg and all further packages will be installed, by default $default_path meow exit 100 @@ -34,7 +34,7 @@ if ! [[ -e ~/.zshrc ]] { echo 'Creating the basic directory structure' mkdir -p ~/bin path=(~/bin $path) -mkdir -p $PDIR/.collected/man/man{1..8} +mkdir -p $PKG_DIR/.collected/man/man{1..8} if ! which git &> /dev/null; then echo 'It appears that git is not available on this system.' @@ -43,13 +43,13 @@ if ! which git &> /dev/null; then fi echo 'Fetching the core package...' -cd $PDIR +cd $PKG_DIR git clone $PKG_ROOT/core cd core || exit 1 echo 'Writing pkg.conf' echo "PKG_ROOT='$PKG_ROOT'" > ~/.pkg.conf -echo "PDIR=\"${PDIR/$HOME/\$HOME}\"" >> ~/.pkg.conf +echo "PKG_DIR=\"${PKG_DIR/$HOME/\$HOME}\"" >> ~/.pkg.conf echo 'Installing core package' rehash |