Files
flipper/scripts/bump
Pascal Hartig 0a68044649 Split up getting started docs
Summary:
This is a first step in breaking up the getting started docs.
Ultimately, the React Native Android and iOS bits will become
separate sections, too, but I won't to keep the diffs a bit smaller.
This one doesn't really do much apart from reorganising the current
content.

Reviewed By: mweststrate

Differential Revision: D20815235

fbshipit-source-id: 5c85b788211699a2a9f5808b9e2590c7db68a1c1
2020-04-03 06:17:49 -07:00
..
2019-01-24 03:42:12 -08:00
2020-04-03 06:17:49 -07:00
2020-02-03 06:55:32 -08:00
2020-02-03 06:55:32 -08:00
2019-09-26 06:44:18 -07:00

bump

A small script for changing version numbers automatically.

Usage

Requires stack 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

This is a moving target, but if you don't end up with a static binary, add ghc-options: -optl-static -optl-pthread -fPIC to your executables section.

The binary can get quite large. Enabling split objects in your global config can be quite effective in reducing it:

~/.stack/config.yaml:

build:
  split-objs: true