Skip to content

Instantly share code, notes, and snippets.

@mhayes
Created April 29, 2014 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhayes/99fff421fdfe398c7f7e to your computer and use it in GitHub Desktop.
Save mhayes/99fff421fdfe398c7f7e to your computer and use it in GitHub Desktop.
Setup SassC + LibSass on MacOSX (tested on 10.9.2 only)
#!/bin/bash
# # Allow us to compile from source
# https://github.com/hcatlin/libsass/archive/master.zip
# https://github.com/hcatlin/sassc/archive/master.zip
TMPFILE="libsass"
PWD=`pwd`
wget "https://github.com/hcatlin/libsass/archive/master.zip" -O $TMPFILE
unzip -d $PWD $TMPFILE
rm $TMPFILE
TMPFILE="sassc"
PWD=`pwd`
wget "https://github.com/hcatlin/sassc/archive/master.zip" -O $TMPFILE
unzip -d $PWD $TMPFILE
rm $TMPFILE
export SASS_LIBSASS_PATH="$PWD/libsass-master"
echo $SASS_LIBSASS_PATH
cd "$PWD/sassc-master"
make
mkdir -p ~/bin
cp bin/sassc ~/bin/sassc
chmod +x ~/bin/sassc
rm -rf libsass-master
rm -rf sassc-master
@mhayes
Copy link
Author

mhayes commented May 1, 2014

To run:

curl https://gist.githubusercontent.com/mhayes/99fff421fdfe398c7f7e/raw/ecd40f2e547e59699d5156095293d62b87370eee/setup.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment