summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a02314)
raw | patch | inline | side by side (parent: 0a02314)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 27 Jul 2007 15:49:01 +0000 (15:49 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 27 Jul 2007 15:49:01 +0000 (15:49 +0000) |
the installation directory.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1767 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1767 f882894a-f735-0410-b71e-b25c423dba1c
tools/tinderbox_build | patch | blob | history |
diff --git a/tools/tinderbox_build b/tools/tinderbox_build
index 1ace2b030dfaa8a028bae30ae1dd3eaa47847921..70fb07a36d249708c84a22722085c11efd975561 100755 (executable)
--- a/tools/tinderbox_build
+++ b/tools/tinderbox_build
my ($host, $junk) = split(/\./, $myhost);
my $BuildAdministrator = $ENV{TINDERBOX_BUILD_ADMIN} || "$ENV{'USER'}\@$myhost";
+my $TmpDir = $ENV{TMPDIR} || "/tmp";
#Default values of cmdline opts
my $ReportStatus = 0; # Do not send results to server
sub maketest {
# Tests
print LOG "LANG=C make test 2>&1\n";
- open( MAKE, "LANG=C make test && make install DESTDIR=/tmp/tinderbox_build.$$ && make install-strip DESTDIR=/tmp/tinderbox_build2.$$ 2>&1 |");
+ open( MAKE, "LANG=C make test && make install DESTDIR=$TmpDir/tinderbox_build.$$ && make install-strip DESTDIR=$TmpDir/tinderbox_build2.$$ 2>&1 |");
while ( <MAKE> ) {
print $_;
print LOG $_;
}
close( MAKE);
my $rc = $?;
- system("rm -fr /tmp/tinderbox_build.$$ /tmp/tinderbox_build2.$$");
+ system("rm -fr $TmpDir/tinderbox_build.$$ $TmpDir/tinderbox_build2.$$");
return ! $rc;
}