sapling/install
Michael Bolin 22994cb1e8 Make oss install script less hacky using --out argument to buck build.
Summary:
The `--out` option was not available when this script was originally written,
but this is exactly the sort of hacky shell-scripting it is desgined to
replace.

Reviewed By: mzlee

Differential Revision: D4625460

fbshipit-source-id: 9c884d0274bb5ebda8c59a7c9c6b2be22efd6265
2017-02-28 12:12:35 -08:00

17 lines
320 B
Bash

#!/bin/bash
set -e
cd `git rev-parse --show-toplevel`
OUTPUT_DIR=buck-out/eden
mkdir -p $OUTPUT_DIR
EDEN_CLI="$OUTPUT_DIR/eden"
EDEN_DAEMON="$OUTPUT_DIR/daemon"
buck build --out $EDEN_CLI eden-cli
buck build --out $EDEN_DAEMON eden-daemon
sudo chmod 4755 $EDEN_DAEMON
echo "Eden executable available in: $EDEN_CLI"