aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/sbox/sbox.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2019-04-12 11:11:38 -0700
committerColin Cross <ccross@android.com>2019-11-21 14:47:46 -0800
commit0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d (patch)
treee0cc48f7aafafdb8ccda16d55e124800da9e1f16 /cmd/sbox/sbox.go
parent51510a887743de47acc6f0e52ddc1e527d5bf3ab (diff)
downloadbuild_soong-0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d.tar.gz
build_soong-0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d.tar.bz2
build_soong-0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d.zip
Support RuleBuilder.Sbox to wrap commands in sbox
This essentially allows you to declare that everything in a directory will be created by the rule, and we'll ensure that your command actually writes out all of the claimed outputs, and remove any other files that previously existed in that directory. Bug: 144948629 Test: built-in tests Change-Id: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 Merged-In: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 (cherry picked from commit 633c50229544db07f48e75833cab655a294f677d)
Diffstat (limited to 'cmd/sbox/sbox.go')
-rw-r--r--cmd/sbox/sbox.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/sbox/sbox.go b/cmd/sbox/sbox.go
index 4167edb3..4ac92953 100644
--- a/cmd/sbox/sbox.go
+++ b/cmd/sbox/sbox.go
@@ -56,7 +56,7 @@ func usageViolation(violation string) {
}
fmt.Fprintf(os.Stderr,
- "Usage: sbox -c <commandToRun> --sandbox-path <sandboxPath> --output-root <outputRoot> --overwrite [--depfile-out depFile] <outputFile> [<outputFile>...]\n"+
+ "Usage: sbox -c <commandToRun> --sandbox-path <sandboxPath> --output-root <outputRoot> [--depfile-out depFile] <outputFile> [<outputFile>...]\n"+
"\n"+
"Deletes <outputRoot>,"+
"runs <commandToRun>,"+