Keep CSS in sync with SASS with Git

I made this shell script for use as a post-merge hook in Git that I’d like to share.

Assumptions:

You are using the SCSS flavor of SASS; even if you don’t have SASS installed on the system you’re using this on, you have it and compass installed on a machine you have SSH access to.

Installation:

  1. You must create a symbolic link to this in your .git/hooks directory “ln -s /path/to/git/hook/in/source/control /path/to/.git/hooks/”
  2. Change theme_path to match where your .scss file is

Published by

The Machine

I am David. I will use this blog to inflict status reports of the progress of my continued enlightenment in all things: animal, vegetable, and mineral, with some World of Warcraft too. You may contact me at [name] at [domain]