···11+#!/usr/bin/perl
22+33+###########################################################################
44+# __________ __ ___.
55+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
66+# Source | _ / _ \_/ ___\| |/ /| __ \ / _ \ \/ /
77+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
88+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
99+# \/ \/ \/ \/ \/
1010+# $Id$
1111+#
1212+# Copyright (C) 2010 Robert Bieber
1313+#
1414+# This program is free software; you can redistribute it and/or
1515+# modify it under the terms of the GNU General Public License
1616+# as published by the Free Software Foundation; either version 2
1717+# of the License, or (at your option) any later version.
1818+#
1919+# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
2020+# KIND, either express or implied.
2121+#
2222+############################################################################/
2323+2424+require '../../tools/builds.pm';
2525+2626+open(FOUT, ">targets.php");
2727+2828+print FOUT '<?php $targets = array(';
2929+3030+@keys = sort byname keys %builds;
3131+$size = @keys;
3232+$final = @keys[$size - 1];
3333+for my $b (@keys)
3434+{
3535+ $key = $b;
3636+ $key =~ s/:/%:/;
3737+ $name = $builds{$b}{name};
3838+ $name =~ s/:/%:/;
3939+4040+ print FOUT "\"$key\"" . "=>" . '"' . $name . '"' if ($builds{$b}{status} >= 3);
4141+ print FOUT ',' if $b ne $final && $builds{$b}{status} >= 3;
4242+}
4343+4444+for my $b (@keys)
4545+{
4646+ $key = $b;
4747+ $key =~ s/:/%:/;
4848+ $name = $builds{$b}{name};
4949+ $name =~ s/:/%:/;
5050+5151+ print FOUT "\"$key\"" . "=>" . '"' . $name . '"' if ($builds{$b}{status} < 3);
5252+ print FOUT ',' if $b ne $final && $builds{$b}{status} < 3;
5353+}
5454+5555+print FOUT '); ?>';
5656+5757+close(FOUT);
5858+
+262-60
utils/themeeditor/resources/targetdb
···11# ----------------------------------------------------------- #
22# ----------------------------------------------------------- #
33# --- This file automatically generated, do not modify! --- #
44-# --- To add a target to the targetdb, add it to the --- #
55-# --- $targets array in buildtargetdb.php and run that --- #
66-# --- script, ensuring that your current directory is --- #
77-# --- utils/themeeditor, and pipe the output into --- #
88-# --- utils/themeeditor/resources/targetdb --- #
94# ----------------------------------------------------------- #
105# ----------------------------------------------------------- #
116···6358 record : yes
6459}
65606666-cowond2
6767-{
6868- name : Cowon D2
6969- screen : 320 x 240 @ rgb
7070- remote : no
7171- fm : yes
7272- record : no
7373-}
7474-7561iaudiom3
7662{
7763 name : iAudio M3
7878- screen : 128 x 96 @ rgb
6464+ screen : 128 x 96 @ grey
7965 remote : no
8066 fm : yes
8167 record : yes
···8470iaudiom5
8571{
8672 name : iAudio M5
8787- screen : 160 x 128 @ rgb
7373+ screen : 160 x 128 @ grey
8874 remote : 128 x 96 @ grey
8975 fm : no
9076 record : yes
···10288ipod1g2g
10389{
10490 name : iPod 1st and 2nd gen
105105- screen : 160 x 128 @ rgb
9191+ screen : 160 x 128 @ grey
10692 remote : no
10793 fm : no
10894 record : no
···11197ipod3g
11298{
11399 name : iPod 3rd gen
114114- screen : 160 x 128 @ rgb
100100+ screen : 160 x 128 @ grey
115101 remote : no
116102 fm : no
117103 record : no
···120106ipod4g
121107{
122108 name : iPod 4th gen Grayscale
123123- screen : 160 x 128 @ rgb
109109+ screen : 160 x 128 @ grey
124110 remote : no
125111 fm : yes
126112 record : yes
···128114129115ipodcolor
130116{
131131- name : iPod Color/Photo
117117+ name : iPod color/Photo
132118 screen : 220 x 176 @ rgb
133119 remote : no
134120 fm : yes
···138124ipodmini1g
139125{
140126 name : iPod Mini 1st gen
141141- screen : 138 x 110 @ rgb
127127+ screen : 138 x 110 @ grey
142128 remote : no
143129 fm : no
144130 record : no
···147133ipodmini2g
148134{
149135 name : iPod Mini 2nd gen
150150- screen : 138 x 110 @ rgb
136136+ screen : 138 x 110 @ grey
151137 remote : no
152138 fm : no
153139 record : no
···162148 record : yes
163149}
164150165165-ipodnano2g
166166-{
167167- name : iPod Nano 2nd gen
168168- screen : 176 x 132 @ rgb
169169- remote : no
170170- fm : no
171171- record : no
172172-}
173173-174151ipodvideo
175152{
176176- name : iPod Video
153153+ name : iPod Video 30GB
177154 screen : 320 x 240 @ rgb
178155 remote : no
179156 fm : yes
···201178iriverh100
202179{
203180 name : iriver H100/115
204204- screen : 160 x 128 @ rgb
181181+ screen : 160 x 128 @ grey
205182 remote : 128 x 64 @ mono
206183 fm : yes
207184 record : yes
···210187iriverh120
211188{
212189 name : iriver H120/140
213213- screen : 160 x 128 @ rgb
190190+ screen : 160 x 128 @ grey
214191 remote : 128 x 64 @ mono
215192 fm : yes
216193 record : yes
···234211 record : no
235212}
236213214214+vibe500
215215+{
216216+ name : Packard Bell Vibe 500
217217+ screen : 160 x 128 @ rgb
218218+ remote : no
219219+ fm : no
220220+ record : yes
221221+}
222222+223223+sansac200
224224+{
225225+ name : SanDisk Sansa c200
226226+ screen : 132 x 80 @ rgb
227227+ remote : no
228228+ fm : yes
229229+ record : yes
230230+}
231231+232232+sansae200
233233+{
234234+ name : SanDisk Sansa e200
235235+ screen : 176 x 220 @ rgb
236236+ remote : no
237237+ fm : yes
238238+ record : yes
239239+}
240240+241241+sansae200v2
242242+{
243243+ name : SanDisk Sansa e200 v2
244244+ screen : 176 x 220 @ rgb
245245+ remote : no
246246+ fm : yes
247247+ record : yes
248248+}
249249+250250+sansafuze
251251+{
252252+ name : SanDisk Sansa Fuze
253253+ screen : 220 x 176 @ rgb
254254+ remote : no
255255+ fm : yes
256256+ record : yes
257257+}
258258+259259+gigabeatfx
260260+{
261261+ name : Toshiba Gigabeat F/X
262262+ screen : 240 x 320 @ rgb
263263+ remote : no
264264+ fm : no
265265+ record : no
266266+}
267267+268268+cowond2
269269+{
270270+ name : Cowon D2
271271+ screen : 320 x 240 @ rgb
272272+ remote : no
273273+ fm : yes
274274+ record : no
275275+}
276276+277277+zenvision
278278+{
279279+ name : Creative Zen Vision
280280+ screen : 320 x 240 @ rgb
281281+ remote : no
282282+ fm : no
283283+ record : no
284284+}
285285+286286+zenvisionm30gb
287287+{
288288+ name : Creative Zen Vision%:M 30GB
289289+ screen : 320 x 240 @ rgb
290290+ remote : no
291291+ fm : no
292292+ record : no
293293+}
294294+295295+zenvisionm60gb
296296+{
297297+ name : Creative Zen Vision%:M 60GB
298298+ screen : 320 x 240 @ rgb
299299+ remote : no
300300+ fm : no
301301+ record : no
302302+}
303303+304304+iaudio7
305305+{
306306+ name : iAudio 7
307307+ screen : 160 x 128 @ rgb
308308+ remote : no
309309+ fm : yes
310310+ record : yes
311311+}
312312+313313+ipodnano2g
314314+{
315315+ name : iPod Nano 2nd gen
316316+ screen : 176 x 132 @ rgb
317317+ remote : no
318318+ fm : no
319319+ record : no
320320+}
321321+322322+iriverifp7xx
323323+{
324324+ name : iriver iFP-7xx
325325+ screen : 128 x 64 @ mono
326326+ remote : no
327327+ fm : no
328328+ record : no
329329+}
330330+331331+logikdax
332332+{
333333+ name : Logik DAX
334334+ screen : 128 x 64 @ mono
335335+ remote : no
336336+ fm : no
337337+ record : no
338338+}
339339+340340+lyreproto1
341341+{
342342+ name : Lyre Prototype 1
343343+ screen : 128 x 128 @ rgb
344344+ remote : no
345345+ fm : no
346346+ record : no
347347+}
348348+349349+meizum3
350350+{
351351+ name : Meizu M3
352352+ screen : 176 x 132 @ rgb
353353+ remote : no
354354+ fm : yes
355355+ record : no
356356+}
357357+358358+meizum6sl
359359+{
360360+ name : Meizu M6SL
361361+ screen : 320 x 240 @ rgb
362362+ remote : no
363363+ fm : yes
364364+ record : no
365365+}
366366+367367+meizum6sp
368368+{
369369+ name : Meizu M6SP
370370+ screen : 240 x 320 @ rgb
371371+ remote : no
372372+ fm : yes
373373+ record : no
374374+}
375375+376376+mini2440
377377+{
378378+ name : Mini 2440
379379+ screen : 240 x 320 @ rgb
380380+ remote : no
381381+ fm : no
382382+ record : no
383383+}
384384+237385mrobe500
238386{
239387 name : Olympus M-Robe 500
···243391 record : no
244392}
245393246246-vibe500
394394+ondavx747
395395+{
396396+ name : Onda VX747
397397+ screen : 240 x 400 @ rgb
398398+ remote : no
399399+ fm : yes
400400+ record : no
401401+}
402402+403403+ondavx767
404404+{
405405+ name : Onda VX767
406406+ screen : 320 x 240 @ rgb
407407+ remote : no
408408+ fm : yes
409409+ record : no
410410+}
411411+412412+ondavx777
413413+{
414414+ name : Onda VX777
415415+ screen : 240 x 400 @ rgb
416416+ remote : no
417417+ fm : yes
418418+ record : no
419419+}
420420+421421+gogearhdd1630
247422{
248248- name : Packard Bell Vibe 500
249249- screen : 160 x 128 @ rgb
423423+ name : Philips GoGear HDD1630
424424+ screen : 128 x 128 @ rgb
250425 remote : no
251251- fm : no
426426+ fm : yes
252427 record : yes
253428}
254429430430+gogearsa9200
431431+{
432432+ name : Philips GoGear SA9200
433433+ screen : 128 x 160 @ rgb
434434+ remote : no
435435+ fm : no
436436+ record : no
437437+}
438438+255439samsungyh820
256440{
257441 name : Samsung YH-820
···264448samsungyh920
265449{
266450 name : Samsung YH-920
267267- screen : 160 x 128 @ rgb
451451+ screen : 160 x 128 @ grey
268452 remote : no
269453 fm : no
270454 record : no
···279463 record : no
280464}
281465282282-sansac200
466466+samsungyps3
283467{
284284- name : SanDisk Sansa c200
468468+ name : Samsung YP-S3
469469+ screen : 176 x 220 @ rgb
470470+ remote : no
471471+ fm : yes
472472+ record : no
473473+}
474474+475475+sansac100
476476+{
477477+ name : SanDisk Sansa c100
478478+ screen : 128 x 64 @ rgb
479479+ remote : no
480480+ fm : no
481481+ record : no
482482+}
483483+484484+sansac200v2
485485+{
486486+ name : SanDisk Sansa c200 v2
285487 screen : 132 x 80 @ rgb
286488 remote : no
287489 fm : yes
···315517 record : yes
316518}
317519318318-sansae200
520520+sansafuzev2
319521{
320320- name : SanDisk Sansa e200
321321- screen : 176 x 220 @ rgb
522522+ name : SanDisk Sansa Fuze v2
523523+ screen : 220 x 176 @ rgb
322524 remote : no
323525 fm : yes
324526 record : yes
325527}
326528327327-sansae200v2
529529+sansam200
328530{
329329- name : SanDisk Sansa e200 v2
330330- screen : 176 x 220 @ rgb
531531+ name : SanDisk Sansa m200
532532+ screen : 128 x 64 @ mono
331533 remote : no
332332- fm : yes
333333- record : yes
534534+ fm : no
535535+ record : no
334536}
335537336336-sansafuze
538538+sansam200v4
337539{
338338- name : SanDisk Sansa Fuze
339339- screen : 220 x 176 @ rgb
540540+ name : SanDisk Sansa m200 v4
541541+ screen : 128 x 64 @ mono
340542 remote : no
341543 fm : yes
342544 record : yes
343545}
344546345345-sansafuzev2
547547+sansaview
346548{
347347- name : SanDisk Sansa Fuze v2
348348- screen : 220 x 176 @ rgb
549549+ name : SanDisk Sansa View
550550+ screen : 240 x 320 @ rgb
349551 remote : no
350350- fm : yes
351351- record : yes
552552+ fm : no
553553+ record : no
352554}
353555354354-gigabeatfx
556556+tatungtpj1022
355557{
356356- name : Toshiba Gigabeat F/X
357357- screen : 240 x 320 @ rgb
558558+ name : Tatung Elio TPJ-1022
559559+ screen : 220 x 176 @ rgb
358560 remote : no
359561 fm : no
360562 record : no