summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPatrick Jenkins <pjenkins@apple.com>2006-07-20 22:28:43 +0000
committerPatrick Jenkins <pjenkins@apple.com>2006-07-20 22:28:43 +0000
commit514e258994b5a28935a144217680d23efaa16ba4 (patch)
tree4d7ec56fb5cf8edbff6ba321948fc718bed21590 /utils
parentcbac2fa23a346351a2d09270f356279c1243897d (diff)
downloadexternal_llvm-514e258994b5a28935a144217680d23efaa16ba4.zip
external_llvm-514e258994b5a28935a144217680d23efaa16ba4.tar.gz
external_llvm-514e258994b5a28935a144217680d23efaa16ba4.tar.bz2
We now fail and print an error message if a nightly tester does not specify a nickname on the command line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/NewNightlyTest.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl
index 37971e8..a7137fd 100755
--- a/utils/NewNightlyTest.pl
+++ b/utils/NewNightlyTest.pl
@@ -139,6 +139,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
$CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next;
}
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
+ else{ $nickname=""; }
if (/^-gccpath/) { $CONFIGUREARGS .=
" CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++";
$GCCPATH=$ARGV[0];
@@ -186,6 +187,10 @@ if (@ARGV == 3) {
$WebDir = $ARGV[2];
}
+if($nickname eq ""){
+ die ("Please invoke NewNightlyTest.pl with command line option \"-nickname <nickname>\"");
+}
+
##############################################################
#
#define the file names we'll use
@@ -461,6 +466,9 @@ $starttime = `date`;
if (!$NOCHECKOUT) {
if (-d $BuildDir) {
if (!$NOREMOVE) {
+ if ( $VERBOSE ){
+ print "Build directory exists! Removing it\n";
+ }
system "rm -rf $BuildDir";
} else {
die "CVS checkout directory $BuildDir already exists!";