From: Daniel Dunbar Date: Fri, 6 Nov 2009 04:12:02 +0000 (+0000) Subject: NewNightlyTest: Unbreak passing the build directory via a positional argument. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fe1974a187ce6578f014ebc03c7881fdee27bf3d;p=oota-llvm.git NewNightlyTest: Unbreak passing the build directory via a positional argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86227 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index acda7064e7e..235b47882c3 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -116,13 +116,6 @@ $TestSVNURL = 'http://llvm.org/svn/llvm-project' unless $TestSVNURL; my $BuildDir = $ENV{'BUILDDIR'}; my $WebDir = $ENV{'WEBDIR'}; -my $LLVMSrcDir = $ENV{'LLVMSRCDIR'}; -$LLVMSrcDir = "$BuildDir/llvm" unless $LLVMSrcDir; -my $LLVMObjDir = $ENV{'LLVMOBJDIR'}; -$LLVMObjDir = "$BuildDir/llvm" unless $LLVMObjDir; -my $LLVMTestDir = $ENV{'LLVMTESTDIR'}; -$LLVMTestDir = "$BuildDir/llvm/projects/llvm-test" unless $LLVMTestDir; - ############################################################## # # Calculate the date prefix... @@ -269,6 +262,13 @@ if ($nickname eq "") { "\"-nickname \""); } +my $LLVMSrcDir = $ENV{'LLVMSRCDIR'}; +$LLVMSrcDir = "$BuildDir/llvm" unless $LLVMSrcDir; +my $LLVMObjDir = $ENV{'LLVMOBJDIR'}; +$LLVMObjDir = "$BuildDir/llvm" unless $LLVMObjDir; +my $LLVMTestDir = $ENV{'LLVMTESTDIR'}; +$LLVMTestDir = "$BuildDir/llvm/projects/llvm-test" unless $LLVMTestDir; + ############################################################## # # Define the file names we'll use