]> granicus.if.org Git - clang/commitdiff
scan-build: Prune off any trailing '/' characters in the output directory path.
authorTed Kremenek <kremenek@apple.com>
Tue, 24 Feb 2009 02:38:02 +0000 (02:38 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 24 Feb 2009 02:38:02 +0000 (02:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65368 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index f1fbb5572988bc499dcdd6cdffcc2092c32575f6..99a799052d86c8b6cff20ef811f86fc5c63ae669 100755 (executable)
@@ -145,6 +145,9 @@ sub GetHTMLRunDir {
     
     $TmpMode = 1;
   }
+  
+  # Chop off any trailing '/' characters.
+  while ($Dir =~ /\/$/) { chop $Dir; }
 
   # Get current date and time.