mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
22994cb1e8
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
17 lines
320 B
Bash
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"
|