summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2009-03-06 23:01:10 +0000
committerJonas Häggqvist <rasher@rasher.dk>2009-03-06 23:01:10 +0000
commit3884266eade47025a2662056a966199982d4cf3c (patch)
tree4186e7f7652a203a54945d32288de967478ed0fc
parentcbcef6700cb000b7b5216434eed296254dffc2d8 (diff)
downloadrockbox-3884266eade47025a2662056a966199982d4cf3c.tar.gz
rockbox-3884266eade47025a2662056a966199982d4cf3c.zip
"Commit" the deleted file...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20220 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/release/w32sims.pl144
1 files changed, 0 insertions, 144 deletions
diff --git a/tools/release/w32sims.pl b/tools/release/w32sims.pl
deleted file mode 100755
index 058e2bb302..0000000000
--- a/tools/release/w32sims.pl
+++ /dev/null
@@ -1,144 +0,0 @@
1#!/usr/bin/perl
2# This is basically a copy of tools/release/bins.pl, with small changes
3# You need to set up $PATH to include the bin dir of a crosscompiled SDL
4# installation, and have mingw32 compilers installed. Everything else should
5# Just Work[tm].
6
7my $verbose, $update, $doonly, $version;
8while (scalar @ARGV > 0) {
9 if ($ARGV[0] eq "-h") {
10 print $ARGV[0]."\n";
11 print <<MOO
12Usage: w32sims [-v] [-u] [-r VERSION] [buildonly]
13 -v Verbose output
14 -u Run svn up before building
15 -r Use the specified version string for filenames (defaults to SVN
16 revision)
17MOO
18;
19 exit 1;
20 }
21 elsif ($ARGV[0] eq "-v") {
22 $verbose =1;
23 }
24 elsif ($ARGV[0] eq "-u") {
25 $update =1;
26 }
27 elsif ($ARGV[0] eq "-r") {
28 $version =$ARGV[1];
29 shift @ARGV;
30 }
31 else {
32 $doonly =$ARGV[0];
33 # This will only be printed if the -v flag comes earler
34 print "only build $doonly\n" if($verbose);
35 }
36 shift @ARGV;
37}
38
39if($update) {
40 # svn update!
41 system("svn -q up");
42}
43
44$rev = `svnversion`;
45chomp $rev;
46print "rev $rev\n" if($verbose);
47
48if (!defined($version)) {
49 $version = sprintf("r%d", $rev);
50}
51
52# made once for all targets
53sub runone {
54 my ($dir, $confnum, $extra)=@_;
55 my $a;
56
57 if($doonly && ($doonly ne $dir)) {
58 return;
59 }
60
61 mkdir "build-$dir";
62 chdir "build-$dir";
63 print "Build in build-$dir\n" if($verbose);
64
65 # build the target
66 $a = buildit($dir, $confnum, $extra);
67
68 chdir "..";
69
70 print "Zip up the sim and associated files\n" if ($verbose);
71 system("mv build-$dir rockbox-$dir-w32-sim");
72 `zip -9 -r -q rockbox-$dir-w32-sim/rockbox.zip rockbox-$dir-w32-sim/{rockboxui.exe,UI256.bmp,SDL.dll,archos}`;
73
74 my $o="rockbox-$dir-w32-sim/rockbox.zip";
75 if (-f $o) {
76 my $newo="output/rockbox-$dir-$version-w32-sim.zip";
77 system("mkdir -p output");
78 system("mv $o $newo");
79 print "moved $o to $newo\n" if($verbose);
80 }
81
82 print "remove all contents in rockbox-$dir-w32-sim\n" if($verbose);
83 system("rm -rf rockbox-$dir-w32-sim");
84
85 return $a;
86};
87
88sub buildit {
89 my ($target, $confnum, $extra)=@_;
90
91 `rm -rf * >/dev/null 2>&1`;
92
93 my $c = sprintf('printf "%s\n%ss\n" | ../tools/configure',
94 $confnum, $extra);
95
96 print "C: $c\n" if($verbose);
97 `$c`;
98
99 print "Run 'make'\n" if($verbose);
100 `make -j 2>/dev/null`;
101
102 print "Run 'make install'\n" if($verbose);
103 `make install 2>/dev/null`;
104
105 print "Find and copy SDL.dll\n" if ($verbose);
106 `cp \`dirname \\\`which sdl-config\\\`\`/SDL.dll ./`;
107
108}
109
110# run make in tools first to make sure they're up-to-date
111print "cd tools && make\n" if($verbose);
112`(cd tools && make ) >/dev/null 2>&1`;
113
114runone("player", "player", '\n');
115runone("recorder", "recorder", '\n');
116runone("recorder8mb", "recorder", '8\n');
117runone("fmrecorder", "fmrecorder", '\n');
118runone("fmrecorder8mb", "fmrecorder", '8\n');
119runone("recorderv2", "recorderv2", '\n');
120runone("ondiosp", "ondiosp", '\n');
121runone("ondiofm", "ondiofm", '\n');
122runone("h100", "h100");
123runone("h120", "h120");
124runone("h300", "h300");
125runone("ipodcolor", "ipodcolor");
126runone("ipodnano", "ipodnano");
127runone("ipod4gray", "ipod4g");
128runone("ipodvideo", "ipodvideo", '32\n');
129runone("ipodvideo64mb", "ipodvideo", '64\n');
130runone("ipod3g", "ipod3g");
131runone("ipod1g2g", "ipod1g2g");
132runone("iaudiox5", "x5");
133runone("iaudiom5", "m5");
134runone("iaudiom3", "m3");
135runone("ipodmini1g", "ipodmini");
136runone("ipodmini2g", "ipodmini2g");
137runone("h10", "h10");
138runone("h10_5gb", "h10_5gb");
139runone("gigabeatf", "gigabeatf");
140runone("sansae200", "e200");
141runone("sansac200", "c200");
142#runone("mrobe500", "mrobe500");
143runone("mrobe100", "mrobe100");
144runone("cowond2", "cowond2");