blob: 678b11b8bf475d134c22248161f5ac50a74961b3 (
plain)
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
32
33
34
35
|
#!perl
open(FH,"<../src/version.sh") or die("Can't open version.sh");
while (chomp($v = <FH>))
{
$version = $v if $v =~ /^echo/;
}
close FH;
$version =~ /InspIRCd-(\d+)\.(\d+)\.(\d+)([ab\+])/;
$v1 = $1;
$v2 = $2;
$v3 = $3;
$type = $4;
if ($type =~ /^[ab]$/)
{
$version =~ /InspIRCd-\d+\.\d+\.\d+[ab\+](\d+)/;
$alphabeta = $1;
$name = "InspIRCd-$v1.$v2.$v3$type$alphabeta.exe";
$rel = "$v1.$v2.$v3$type$alphabeta";
}
else
{
$name = "InspIRCd-$v1.$v2.$v3.exe";
$rel = "$v1.$v2.$v3";
}
print "del $name\n";
print "ren Setup.exe $name\n";
system("del $name");
system("ren Setup.exe $name");
system("upload_release.bat $name $rel");
|