-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmakeissrc.pl
executable file
·107 lines (100 loc) · 4.28 KB
/
makeissrc.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/perl
use strict;
use warnings;
my $git = 'git';
my $unzip = 'unzip';
my $wget = 'wget';
my $srcdir = 'innosetup';
my $giturl = 'https://github.com/jrsoftware/issrc.git';
my $firstcommit = '238b7749629c219c25716a5f04a66fb9dfa5feb2';
my $branch = 'old';
my @sources = qw(
http://www.jrsoftware.org/download.php/issrc-1.2.16.zip
http://www.jrsoftware.org/download.php/issrc-1.3.26.zip
http://www.jrsoftware.org/download.php/issrc-2.0.19.zip
http://www.jrsoftware.org/download.php/issrc-3.0.7.zip
http://files.jrsoftware.org/is/4/issrc-4.0.8.zip
http://files.jrsoftware.org/is/4/issrc-4.0.9.zip
http://files.jrsoftware.org/is/4/issrc-4.0.10.zip
http://files.jrsoftware.org/is/4/issrc-4.0.11.zip
http://files.jrsoftware.org/is/4/issrc-4.1.0.zip
http://files.jrsoftware.org/is/4/issrc-4.1.1.zip
http://files.jrsoftware.org/is/4/issrc-4.1.2.zip
http://files.jrsoftware.org/is/4/issrc-4.1.3.zip
http://files.jrsoftware.org/is/4/issrc-4.1.4.zip
http://files.jrsoftware.org/is/4/issrc-4.1.5.zip
http://files.jrsoftware.org/is/4/issrc-4.1.6.zip
http://files.jrsoftware.org/is/4/issrc-4.1.7.zip
http://files.jrsoftware.org/is/4/issrc-4.1.8.zip
http://files.jrsoftware.org/is/4/issrc-4.2.0.zip
http://files.jrsoftware.org/is/4/issrc-4.2.1.zip
http://files.jrsoftware.org/is/4/issrc-4.2.2.zip
http://files.jrsoftware.org/is/4/issrc-4.2.3.zip
http://files.jrsoftware.org/is/4/issrc-4.2.4.zip
http://files.jrsoftware.org/is/4/issrc-4.2.5.zip
http://files.jrsoftware.org/is/4/issrc-4.2.6.zip
http://files.jrsoftware.org/is/4/issrc-4.2.7.zip
http://files.jrsoftware.org/is/5/issrc-5.0.0-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.1-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.2-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.3-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.4-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.5-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.0.6.zip
http://files.jrsoftware.org/is/5/issrc-5.0.7.zip
http://files.jrsoftware.org/is/5/issrc-5.0.8.zip
http://files.jrsoftware.org/is/5/issrc-5.1.0-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.1.1-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.1.2-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.1.3-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.1.4.zip
http://files.jrsoftware.org/is/5/issrc-5.1.5.zip
http://files.jrsoftware.org/is/5/issrc-5.1.6.zip
http://files.jrsoftware.org/is/5/issrc-5.1.7.zip
http://files.jrsoftware.org/is/5/issrc-5.1.8.zip
http://files.jrsoftware.org/is/5/issrc-5.1.9.zip
http://files.jrsoftware.org/is/5/issrc-5.1.10.zip
http://files.jrsoftware.org/is/5/issrc-5.1.11.zip
http://files.jrsoftware.org/is/5/issrc-5.1.12.zip
http://files.jrsoftware.org/is/5/issrc-5.1.13.zip
http://files.jrsoftware.org/is/5/issrc-5.1.14.zip
http://files.jrsoftware.org/is/5/issrc-5.2.0.zip
http://files.jrsoftware.org/is/5/issrc-5.2.1.zip
http://files.jrsoftware.org/is/5/issrc-5.2.2.zip
http://files.jrsoftware.org/is/5/issrc-5.2.3.zip
http://files.jrsoftware.org/is/5/issrc-5.3.0-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.3.1-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.3.2-beta.zip
http://files.jrsoftware.org/is/5/issrc-5.3.3.zip
http://files.jrsoftware.org/is/5/issrc-5.3.4.zip
http://files.jrsoftware.org/is/5/issrc-5.3.5.zip
http://files.jrsoftware.org/is/5/issrc-5.3.6.zip
http://files.jrsoftware.org/is/5/issrc-5.3.7.zip
http://files.jrsoftware.org/is/5/issrc-5.3.8.zip
http://files.jrsoftware.org/is/5/issrc-5.3.9.zip
http://files.jrsoftware.org/is/5/issrc-5.3.10.zip
http://files.jrsoftware.org/is/5/issrc-5.3.11.zip
http://files.jrsoftware.org/is/5/issrc-5.4.0.zip
http://files.jrsoftware.org/is/5/issrc-5.4.1.zip
http://files.jrsoftware.org/is/5/issrc-5.4.2.zip
);
sub tag {
my ($zip, $msg, $tag) = @_;
system("$git rm -r .");
system("$unzip $zip");
system("$git add .");
system("$git commit -m '$msg'");
print("The error about the missing tag can be ignored.\n");
system("$git tag -d $tag");
system("$git tag $tag");
}
system($wget, @sources);
system("$git clone $giturl $srcdir");
chdir($srcdir);
system("$git checkout $firstcommit");
system("$git checkout -b $branch");
for my $url (@sources) {
my ($zipfile, $major, $minor, $micro) = ($url =~ /(issrc-([0-9])\.([0-9])\.([0-9]{1,2})(-beta)?\.zip)/);
tag("../$zipfile", "$major.$minor.$micro", "is-$major\_$minor\_$micro");
}
system("$git checkout master");