Skip to content

Commit 1d651b0

Browse files
simpkinsfacebook-github-bot
authored andcommitted
replace the old getdeps.py script with a build.sh script
Summary: Replace Eden's old custom `getdeps.py` script with a simple `build.sh` wrapper that invokes the modern `getdeps.py` tool. Note that this build script was largely cribbed from the `getdeps.sh` script in the [fboss](https://github.com/facebook/fboss/) repository. Reviewed By: wez Differential Revision: D20688291 fbshipit-source-id: 6f119479280e82a0c28b8b1481fa01611908c566
1 parent b31c991 commit 1d651b0

File tree

3 files changed

+24
-483
lines changed

3 files changed

+24
-483
lines changed

.projectid

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eden

build.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
#
4+
# This software may be used and distributed according to the terms of the
5+
# GNU General Public License version 2.
6+
7+
TOOLCHAIN_DIR=/opt/rh/devtoolset-8/root/usr/bin
8+
if [[ -d "$TOOLCHAIN_DIR" ]]; then
9+
PATH="$TOOLCHAIN_DIR:$PATH"
10+
fi
11+
12+
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
13+
GETDEPS_PATHS=(
14+
"$SCRIPT_DIR/build/fbcode_builder/getdeps.py"
15+
"$SCRIPT_DIR/../../opensource/fbcode_builder/getdeps.py"
16+
)
17+
for getdeps in "${GETDEPS_PATHS[@]}"; do
18+
if [[ -x "$getdeps" ]]; then
19+
exec "$getdeps" build eden "$@"
20+
fi
21+
done
22+
echo "Could not find getdeps.py" >&2
23+
exit 1

0 commit comments

Comments
 (0)