Skip to content

Instantly share code, notes, and snippets.

@anlutro
Last active August 29, 2015 14:05
Show Gist options
  • Save anlutro/5f103ce197df9b1e7ee6 to your computer and use it in GitHub Desktop.
Save anlutro/5f103ce197df9b1e7ee6 to your computer and use it in GitHub Desktop.
Installing sassc - SASS/SCSS compiler written in C
#!/usr/bin/env sh
# where to put the executable - make sure you have write
# permissions to $prefix/bin !
prefix=$HOME # or /usr/local or whatever
# create a random tmp directory to work in
src=$(mktemp -d) && cd $src
git clone https://github.com/sass/libsass && cd libsass
git submodule init && git submodule update
cd $src
git clone https://github.com/sass/sassc && cd sassc
export SASS_LIBSASS_PATH=$src/libsass
make
mv ./bin/* $prefix/bin
rm -rf $src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment