I'm working on a shell script to optimize my build process on a web/front end project.
I'm using sass to enhance css development and the html5boilerplate build script to optimize for development.
I'm trying to get the script to do the following. 1. check if sass --watch is enabled, if not run
sass --watch file.scss:file.css
2. cd into the build folder and run ant build
The problem is that sass --watch locks up the terminal and the script won't step into the ant build until I hit Control-C to stop sass.
I've tried 'xterm' to spawn a new terminal window for sass, but xterm opens the X-11 app on my mac and nothing fires.
Is there another way to open a terminal window? Is there a way to thread sass? I really want to run my script and get back to a command prompt so I can repeat my command all day and keep the build process running smoothly.
See Question&Answers more detail:os