support/buildbot/startbuild.pl
author Nicholas Hastings <skamonkey@gmail.com>
Wed May 21 17:26:09 2014 -0400 (2014-05-21)
changeset 917 95639ee45d3d
parent 893 417a8f47bf35
permissions -rwxr-xr-x
Trigger build for hl2sdk-l4d changes.
     1 #!/usr/bin/perl
     2 # vim: set ts=2 sw=2 tw=99 noet: 
     3 
     4 use File::Basename;
     5 
     6 my ($myself, $path) = fileparse($0);
     7 chdir($path);
     8 
     9 require 'helpers.pm';
    10 
    11 chdir('../../../OUTPUT');
    12 
    13 my $argn = $#ARGV + 1;
    14 if ($argn > 0) {
    15 	$ENV{CC} = $ARGV[0];
    16 	$ENV{CXX} = $ARGV[0];
    17 }
    18 
    19 system("ambuild --no-color 2>&1");
    20 
    21 if ($? != 0)
    22 {
    23 	die "Build failed: $!\n";
    24 }
    25 else
    26 {
    27 	exit(0);
    28 }
    29