Move bump to project folder
Summary: Makes building a bit easier and I can have my own README in there. Reviewed By: jknoxville Differential Revision: D13784725 fbshipit-source-id: b694c1ce812d4e383ad44faeacd8e0094a96b432
This commit is contained in:
committed by
Facebook Github Bot
parent
a70f47cb0e
commit
7e911ed5e8
43
scripts/bump/README.md
Normal file
43
scripts/bump/README.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# bump
|
||||
|
||||
A small script for changing version numbers automatically.
|
||||
|
||||
## Usage
|
||||
|
||||
Requires [stack](http://haskellstack.org/) to be installed.
|
||||
|
||||
```
|
||||
./bump.hs --help
|
||||
```
|
||||
|
||||
Alternatively, use the pre-checked-in binaries from the superfolder
|
||||
through `bump.sh`.
|
||||
|
||||
To bump a release version, just pass the new version number.
|
||||
|
||||
```
|
||||
bump 1.2.3
|
||||
```
|
||||
|
||||
To bump to a snapshot release, run with `--snapshot`:
|
||||
|
||||
```
|
||||
bump --snapshot 1.2.4-SNAPSHOT
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To build the native binaries, run
|
||||
|
||||
```
|
||||
stack build
|
||||
```
|
||||
|
||||
The binary is then placed in `.stack-work/install/x86_64-osx/**/bin/bump`.
|
||||
|
||||
To cross-compile for Linux (required for internal CI), run
|
||||
|
||||
```
|
||||
stack docker pull
|
||||
stack build --docker
|
||||
```
|
||||
Reference in New Issue
Block a user