Created
May 4, 2011 15:09
-
-
Save gorenje/955379 to your computer and use it in GitHub Desktop.
bash alias for install cappuccino tool chain into a local directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _funct_capp_local_install | |
{ | |
local dirname response | |
if ! git clone https://github.com/280north/cappuccino.git . ; then | |
echo "Current directory is not empty, a $0 will only work" | |
echo "in an empty directory." | |
return | |
fi | |
echo "Install Directory (.narwhal) : " | |
read dirname | |
if [[ "$dirname" == "" ]] ; then | |
dirname=".narwhal" | |
fi | |
if [ -d $dirname ] ; then | |
echo "directory exists, exiting" | |
return | |
fi | |
mkdir $dirname | |
cd $dirname | |
git clone git://github.com/280north/narwhal.git . | |
export PATH=$(pwd)/bin:$PATH | |
hash -r | |
echo -n "Tusk is now, is this correct? (Y/n) : " | |
which tusk | |
read response | |
if [ "$response" == "y" -o "$response" == "" ] ; then | |
echo "Installing jake, browserjs and shrinksafe via tusk" | |
tusk install jake | |
tusk install browserjs | |
tusk install shrinksafe | |
fi | |
cd ../ | |
jake install # install objective-j and cappuccino | |
# OJTest requires objective-j therefore do it after cappuccino is complete | |
tusk install https://github.com/280north/OJTest/zipball/latest | |
echo "done installation, tools are now:" | |
which capp | |
which ojtest | |
} | |
alias capp-local-install=_funct_capp_local_install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment