Execute build script automatically when any specified files in working directory are modified.
Execute build script automatically when any specified files in working directory are modified.
autobuild -s ./playground.sh -t "{red}"
autobuild -s ./build.sh -t "{swift}"
brew install fswatch
git clone https://github.com/unchartedworks/autobuild.git
cd autobuild
./build.sh
Usage: autobuild [options]
-c, --chdir:
Change working directory before any other operation
-s, --script:
Build script path
-t, --types:
file extensions to be monitored, such as "{swift,m,h}".
If there is no file extensions specified, all kinds of files in working directory will be monitored.
-h, --help:
print usage
autobuild (-c|--chdir workingdirectory) (-s|--script scriptpath) (-t|--types fileextensions)
Execute build script automatically when any specified files in working directory are modified.