- Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsmokeNsend.pl
executable file
·31 lines (26 loc) · 950 Bytes
/
smokeNsend.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!perl
#
die
"Usage: username password [git-branch] [toggle for main repo] [extra options for smolder_smoke_signal]. \n Found @ARGV args"
if$#ARGV < 1;
my$revision = `git log --pretty='%h' -n 1`;
if ( !$revision ) #Don't have pretty format supported in git so using regex
{
$revision = `git log -n 1`;
$revision =~ /commit (\w{8})/;
$revision = $1;
}
if ( !$ARGV[4] ) {
systemsplit'', "git pull origin $ARGV[2]"
if ( $ARGV[2] && !( $ARGV[3] ) );
systemsplit'', "git pull git://github.com/kthakore/SDL_perl.git $ARGV[2]"
if$ARGV[3];
system( 'perl', 'Build.PL' );
system( 'perl', 'Build' );
unlink('sdl.tar.gz');
systemsplit'', 'prove -vlbm --archive sdl.tar.gz';
}
my$cmd =
"perl tools/smolder_smoke_signal --server sdlperl.ath.cx --port 8080 --username $ARGV[0] --password $ARGV[1] --file sdl.tar.gz --project SDL --architecture $] --platform $^O $ARGV[3] --revision $revision";
warn$cmd;
systemsplit'', $cmd;