mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
edd57d380d
- Fixes the IPC bug - Fixes the terminfo bug - Moves the OSX SDK out of our nixcrpkgs fork. - Vendor nixcrpkgs instead of having it be a submodule.
28 lines
486 B
Bash
Executable File
28 lines
486 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
err () { echo "$@" >&2; exit 1; }
|
|
|
|
[ $# = 2 ] || err "usage: $0 pkg host"
|
|
|
|
traced () {
|
|
echo '$' "$@" >&2; "$@"
|
|
}
|
|
|
|
release () {
|
|
traced nix-build nix/release.nix --no-out-link -A "$1"
|
|
}
|
|
|
|
pkg="$1"
|
|
env="$2"
|
|
|
|
res=$(release "$env.$pkg")
|
|
|
|
mkdir -p ./bin/$env
|
|
traced cp -f $res/bin/$pkg ./bin/$env/$pkg
|
|
traced cp -f $res/bin/$pkg-worker ./bin/$env/$pkg-worker
|
|
traced cp -r $res/bin/$pkg-terminfo ./bin/$env/$pkg-terminfo
|
|
|
|
chmod -R u+wr ./bin/$env/$pkg-terminfo
|