File tree 5 files changed +4
-15
lines changed
drake_bazel_external_legacy
5 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
- # Used for setup, do not build
2
1
drake
Original file line number Diff line number Diff line change 1
- # Used for setup, do not build
2
1
drake
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ set -euxo pipefail
7
7
# rather than the URL to the latest Drake master branch
8
8
# found in drake_bazel_external_legacy/WORKSPACE.
9
9
export EXAMPLES_LOCAL_DRAKE_PATH=$( realpath drake)
10
- trap ' unset EXAMPLES_LOCAL_DRAKE_PATH' EXIT
11
10
12
11
bazel version
13
12
bazel test //...
Original file line number Diff line number Diff line change @@ -29,21 +29,14 @@ pushd build
29
29
30
30
export LD_LIBRARY_PATH=" ${PWD} /install/lib${LD_LIBRARY_PATH: +: ${LD_LIBRARY_PATH} } "
31
31
32
- cmake_args=()
32
+ cmake_commit_arg=
33
33
if [[ ! -z " ${drake_commit_hash} " ]]; then
34
34
# Use a specific commit of Drake source,
35
35
# rather than the latest from master.
36
- cmake_args+=(-DDRAKE_COMMIT_HASH=${drake_commit_hash} )
37
-
38
- # Find the SHA-256 by downloading and running shasum.
39
- wget -O drake.tar.gz \
40
- https://github.com/RobotLocomotion/drake/archive/${drake_commit_hash} .tar.gz
41
- trap ' rm -f drake.tar.gz' EXIT
42
- drake_commit_sha256=$( echo $( shasum -a 256 drake.tar.gz | awk ' {print $1}' ) )
43
- cmake_args+=(-DDRAKE_COMMIT_SHA256=${drake_commit_sha256} )
36
+ cmake_commit_arg=" -DDRAKE_COMMIT_HASH=${drake_commit_hash} "
44
37
fi
45
38
46
- cmake .. " ${cmake_args[@] } "
39
+ cmake .. " ${cmake_commit_arg } "
47
40
cmake --build .
48
41
49
42
cd drake_external_examples
Original file line number Diff line number Diff line change @@ -94,8 +94,7 @@ ExternalProject_Add(spdlog
94
94
set (DRAKE_PREFIX "${PROJECT_BINARY_DIR} /drake-prefix" )
95
95
96
96
# Options to override Drake's latest source on master with a specific commit.
97
- # Download https://github.com/RobotLocomotion/drake/archive/${DRAKE_COMMIT_HASH}.tar.gz
98
- # and use "shasum -a 256 'xxx.tar.gz'" on it to get the DRAKE_COMMIT_SHA256.
97
+ # See README.md for details.
99
98
set (DRAKE_COMMIT_HASH "master" CACHE STRING "Commit hash for Drake" )
100
99
set (DRAKE_COMMIT_SHA256 CACHE STRING "SHA256 hash value for Drake commit archive" )
101
100
You can’t perform that action at this time.
0 commit comments