ZX: verup

zx verup [major | minor | patch]

Increment the indicated version level according to semver version rules.

This updates the .app file in ebin/, the -vsn attibute in all .erl files (adding it after the -module attribute if omitted), updates the @version attribute in doc/ files (if present), and updates the zomp.meta record for the package.

The example below demonstrates both "verup" and "set version":

ceverett:takoyaki:~/code/foo$ zx verup patch
New version: 0.1.1
ceverett:takoyaki:~/code/foo$ zx verup minor
New version: 0.2.0
ceverett:takoyaki:~/code/foo$ zx verup major
New version: 1.0.0
ceverett:takoyaki:~/code/foo$ zx verup patch
New Version: 1.0.1
ceverett:takoyaki:~/code/foo$ zx set version 3.4.5
1.0.1 -> 3.4.5
ceverett:takoyaki:~/code/foo$ zx verup minor
New Version: 3.5.0
ceverett:takoyaki:~/code/foo$