forked from Meridian59/Meridian59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Daenks/Meridian59_103
- Loading branch information
Showing
14 changed files
with
469 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#CheckHaveBranch.pl | ||
|
||
#use strict; | ||
use warnings; | ||
use LWP::Simple; | ||
use Getopt::Long; | ||
use Pithub; | ||
|
||
my $branch; | ||
|
||
GetOptions("branch=s", => \$branch); | ||
|
||
$output = `git checkout $branch 2>&1 1>nul`; | ||
if ($output !~ /did not match any file/) | ||
{ | ||
print "1\n"; | ||
} | ||
else | ||
{ | ||
print "0\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#GetAllOpenPullRequests.pl | ||
|
||
#use strict; | ||
use warnings; | ||
use LWP::Simple; | ||
use Getopt::Long; | ||
use Pithub; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use Net::FTP; | ||
|
||
my $kodpath = "C:/Meridian59-quickbuilds/kod"; | ||
my $host = "10.0.50.220"; | ||
|
||
chdir $kodpath; | ||
|
||
my $ftp = Net::FTP->new($host, Debug => 0) | ||
or die "Cannot connect to $host: $@"; | ||
|
||
$ftp->login("buildserver",'betafreak!@#') | ||
or die "Cannot login to $host", $ftp->message; | ||
|
||
$ftp->cwd("/download") | ||
or die "Cannot change working directory ", $ftp->message; | ||
|
||
$ftp->get("kodbase.txt") | ||
or die "get failed ", $ftp->message; | ||
|
||
$ftp->quit; | ||
|
||
print "GETKODBASE: obtained $kodpath/kodbase.txt via FTP from $host.\n"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#IsBranchMergedWith.pl | ||
#--destination=branch to merge into | ||
#--source=branch to merge from | ||
#returns 1 if the source branch has been merged into destionation | ||
|
||
#use strict; | ||
use warnings; | ||
use LWP::Simple; | ||
use Getopt::Long; | ||
use Pithub; | ||
|
||
|
||
my $source; | ||
my $destination; | ||
|
||
GetOptions("source=s", => \$source, | ||
"destination=s", => \$destination); | ||
|
||
$output = `git checkout $destination 2>&1 1>nul`; | ||
$output = `git branch --merged`; | ||
|
||
if ($output =~ m/$source/) | ||
{ | ||
print "1\n"; | ||
} | ||
else | ||
{ | ||
print "0\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#MergeWith | ||
#--destination=branch to merge into | ||
#--source=branch to merge from | ||
|
||
#use strict; | ||
use warnings; | ||
use LWP::Simple; | ||
use Getopt::Long; | ||
use Pithub; | ||
|
||
|
||
my $source; | ||
my $destination; | ||
|
||
GetOptions("source=s", => \$source, | ||
"destination=s", => \$destination); | ||
|
||
$output = `git checkout $destination`; | ||
|
||
$output = `git merge $source`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" | ||
|
||
call nmake | ||
call nmake DEBUG=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use File::Copy; | ||
|
||
my $prodkod = "C:/Users/Administrator/Desktop/server/kodbase.txt"; | ||
my $buildkod = "C:/Users/Administrator/Desktop/server104/download/kodbase.txt"; | ||
|
||
|
||
print "COPYPRODKOD: Copying production kodbase.txt for download by buildserver...\n"; | ||
copy($prodkod,$buildkod); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.