https://github.com/webcpu/autobuild
Execute build script automatically when any specified files in working directory are modified.
https://github.com/webcpu/autobuild
build-automation macos-high-sierra swift
Last synced: 8 months ago
JSON representation
Execute build script automatically when any specified files in working directory are modified.
- Host: GitHub
- URL: https://github.com/webcpu/autobuild
- Owner: webcpu
- License: mit
- Created: 2017-07-16T11:52:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T08:46:53.000Z (almost 2 years ago)
- Last Synced: 2025-04-08T19:52:42.705Z (9 months ago)
- Topics: build-automation, macos-high-sierra, swift
- Language: Swift
- Homepage:
- Size: 1.35 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autobuild
Execute build script automatically when any specified files in working directory are modified.
## Examples
```autobuild -s ./playground.sh -t "{red}"```

```autobuild -s ./build.sh -t "{swift}"```

## Installation
### Prerequisites
- macOS 10.13
- Xcode 9+ & Xcode command line tools
- fswatch
```
brew install fswatch
```
### Install
```
git clone https://github.com/unchartedworks/autobuild.git
cd autobuild
./build.sh
```
## Usage
```
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.
```