rejeep/carton — pull request #11 by kalifg (2012-11-29 19:58:52+00:00)
Title: carton bash script modifications

I'm running Emacs 24.2.1 from Homebrew on Mac OS X 10.8.2. I am running carton from an ansi-term inside Emacs, in which case it sets to the ```$EMACS``` environment variable to ```"24.2.1 '(term:0.96)'"```, which broke the script. I added a check for whether the setting of that variable is a valid command.

Also in my setup I wanted to mirror my other homebrew installs by installing carton under ```/usr/local/Cellar``` and then symlinking ```bin/carton``` into ```/usr/local/bin```. This breaks the current logic for finding carton.el, so I added a check for a ```$CARTON_DIR``` environment variable for the cases in which people might want to do that.