Created
January 26, 2014 16:12
-
-
Save infotexture/8635029 to your computer and use it in GitHub Desktop.
Sample Mac OS X `launchd` script to watch a folder and run DITA builds whenever files change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<false/> | |
<key>Label</key> | |
<string>net.infotexture.autobuild_watcher</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/bash</string> | |
<string>/Users/username/projectdir/scripts/run-dita-build.sh</string> <!-- ◄ Run this… --> | |
</array> | |
<key>ThrottleInterval</key> | |
<integer>300</integer> <!-- ◄ if at least 300 seconds (5m) have passed since last build, AND… --> | |
<key>WatchPaths</key> | |
<array> | |
<string>/Users/username/projectdir/dita-src</string> <!-- ◄ …if any files here have changed --> | |
</array> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment