mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-30 10:46:11 +03:00
22 lines
488 B
Bash
Executable File
22 lines
488 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Usage: create-ropsten-pills
|
|
|
|
# Build the ivory and brass ropsten pills, copying them to the local directory,
|
|
# named with the current give revision
|
|
|
|
set -xeuo pipefail
|
|
|
|
cd "${0%/*}/.."
|
|
|
|
rev="$(git rev-parse HEAD)"
|
|
sha="${rev:0:5}"
|
|
|
|
brass="brass-ropsten-${sha}.pill"
|
|
ivory="ivory-ropsten-${sha}.pill"
|
|
|
|
cp -f "$(nix-build -A brass-ropsten.build --no-out-link)" "$brass"
|
|
cp -f "$(nix-build -A ivory-ropsten.build --no-out-link)" "$ivory"
|
|
|
|
chmod 0644 "$brass" "$ivory"
|