Skip to content

Instantly share code, notes, and snippets.

View adamallidina's full-sized avatar

adam allidina adamallidina

View GitHub Profile
@adamallidina
adamallidina / inotify-cmake.sh
Created September 30, 2012 19:31 — forked from dln/inotify-cmake.sh
Continuous build on the cheap, using inotify, cmake and a terminal
#!/bin/bash
# Watch paths (given as arguments), automatically build when something changes.
# The script does a couple opinionated things to make my life easier:
#
# * Terminal scrollbuffer is reset before each iteration, simplifying scrolling.
# * I use a filter script to colorize gcc output (clang errors would be nicer).
# * Output is copied to a log file (/tmp/build.log).
# - I open this file in Sublime or vim, which reloads the file on change (each build).
#
# Usage: