Skip to content

Commit fc55810

Browse files
committed
devtool: also copy example binaries when doing build --rev
Also copy the example binaries into the target directory when building some arbitrary revision (for example for A/B-tests). Signed-off-by: Patrick Roy <[email protected]>
1 parent 2695c52 commit fc55810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/devtool

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,9 @@ cmd_build() {
517517
if [ ! -z "$revision" ]; then
518518
popd
519519
git branch -D $branch_name
520-
mkdir -p build/"$revision"
520+
mkdir -p build/"$revision"/examples
521521
cp $tmp_dir/build/cargo_target/$(uname -m)-unknown-linux-$libc/$profile/* build/"$revision"
522+
cp $tmp_dir/build/cargo_target/$(uname -m)-unknown-linux-$libc/$profile/examples/ build/"$revision"/examples
522523
cmd_sh "rm -rf $tmp_dir"
523524
fi
524525

0 commit comments

Comments
 (0)