urbit/sh/create-ropsten-pills
Jared Tobin fd3756a3b7 build: use HEAD in sh/create-ropsten-pills
If we're not on a branch, e.g. if we've checked out an arbitrary
revision, then 'git branch --show-current' sensibly won't give us any
output, and thus the pills produced by sh/create-ropsten-pills will be
misnamed.

Consuming HEAD with git-rev-parse has the same effect here, and should
work in all cases of interst.
2019-11-06 20:14:51 +09:00

12 lines
257 B
Bash
Executable File

#!/usr/bin/env bash
set -e
sha=$(git rev-parse HEAD)
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