aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-24 02:38:02 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-24 02:38:02 +0000
commitbf762c9b48673e9686a97fe6ca144d891316164e (patch)
tree86b5a23236797c2b25a7b0e1a00e2c1541b47c20
parent265a305997c63a28d87ddd370958db083f98bc1a (diff)
scan-build: Prune off any trailing '/' characters in the output directory path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65368 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/scan-build3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/scan-build b/utils/scan-build
index f1fbb55729..99a799052d 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -145,6 +145,9 @@ sub GetHTMLRunDir {
$TmpMode = 1;
}
+
+ # Chop off any trailing '/' characters.
+ while ($Dir =~ /\/$/) { chop $Dir; }
# Get current date and time.