build: add ropsten-pills target to Makefile

Adds a script for creating Ropsten pills, then adds it to the Makefile
under the 'ropsten-pills' target.
This commit is contained in:
Jared Tobin 2019-10-24 09:59:03 +08:00
parent 0bdced981e
commit 432a321e0c
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4
2 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.PHONY: build build-all install cross release test pills clean
.PHONY: build build-all install cross release test pills ropsten-pills clean
build:
nix-build -A urbit -A herb --no-out-link
@ -23,6 +23,9 @@ pills:
sh/update-brass-pill
sh/update-ivory-pill
ropsten-pills:
sh/create-ropsten-pills
interface:
sh/build-interface

11
sh/create-ropsten-pills Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
sha=$(git rev-parse $(git branch --show-current))
brass=$(nix-build nix/ops -A brass-ropsten --no-out-link)
ivory=$(nix-build nix/ops -A ivory-ropsten --no-out-link)
cp $brass ./brass-ropsten-${sha:0:5}.pill
cp $ivory ./ivory-ropsten-${sha:0:5}.pill