aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-05-28 12:39:39 -0700
committerAdam Vandenberg2010-05-28 12:39:39 -0700
commitcc34c0c3929e8ac4ad5bf9aa86e55b4c73cf8436 (patch)
treed96b89fff75eff2e1de6a2da8ddba0949a4a3736 /Library
parent4fb29767fec455c099fdfd1004d2e01146b3f488 (diff)
downloadbrew-cc34c0c3929e8ac4ad5bf9aa86e55b4c73cf8436.tar.bz2
Remove selflink script.
Between the quick-install steps and other instructions on the Wiki, this "self-link" script is no longer needed (and no longer recommended.)
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/selflink.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/Library/Contributions/selflink.sh b/Library/Contributions/selflink.sh
deleted file mode 100755
index 7a33c2c79..000000000
--- a/Library/Contributions/selflink.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env bash
-# This script links your clone into $install_base, so you can keep the .git
-# directory out of the way. Default for no parameters is /usr/local
-
-mode=$1
-if [[ -z $mode ]]; then
- mode="install"
-fi
-
-install_base=$2
-if [[ -z $install_base ]]; then
- install_base="/usr/local"
-fi
-
-source_base=`pwd`
-
-if [[ $mode == install ]]; then
- # Ensure that the Cellar exists -- otherwise Homebrew breaks
- if [[ ! -e "$source_base/Cellar" ]] ; then
- mkdir -p "$install_base/Cellar"
- fi
-
- if [[ ! -e "$source_base/bin" ]] ; then
- mkdir -p $install_base/bin
- fi
-
- ln -s "$source_base/bin/brew" "$install_base/bin/brew";
- ln -s "$source_base/Cellar" "$install_base/Cellar";
-elif [[ $mode == undo ]]; then
- if [[ -h "$install_base/bin/brew" ]] ; then
- rm "$install_base/bin/brew"
- fi
-
- if [[ -h "$install_base/Cellar" ]] ; then
- rm "$install_base/Cellar"
- fi
-else
- echo "Unknown command: $mode";
- echo " selflink.sh [install] >> symlinks to $install_base"
- echo " selflink.sh undo >> removes symlinks from $install_base"
-fi