diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 12:51:34 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 12:51:34 +0000 |
commit | f74fa91be142322960088a46bc9289b73bcf5718 (patch) | |
tree | b8eeb08239fbe98cfb102fc0ee77de20b91def4d /tools | |
parent | 9d4f0761b91b8f8dcd376864586d6fa85765c597 (diff) | |
download | rockbox-f74fa91be142322960088a46bc9289b73bcf5718.tar.gz rockbox-f74fa91be142322960088a46bc9289b73bcf5718.zip |
Sort names case insensitive. Remove duplication.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23885 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builds.pm | 315 |
1 files changed, 1 insertions, 314 deletions
diff --git a/tools/builds.pm b/tools/builds.pm index 3653600efc..53b6f2148f 100644 --- a/tools/builds.pm +++ b/tools/builds.pm | |||
@@ -287,320 +287,7 @@ sub voicename { | |||
287 | } | 287 | } |
288 | 288 | ||
289 | sub byname { | 289 | sub byname { |
290 | return $builds{$a}{name} cmp $builds{$b}{name}; | 290 | return uc $builds{$a}{name} cmp uc $builds{$b}{name}; |
291 | } | ||
292 | |||
293 | sub usablebuilds { | ||
294 | my @list; | ||
295 | |||
296 | for my $b (sort byname keys %builds) { | ||
297 | push @list, $b if ($builds{$b}{status} >= 2); | ||
298 | } | ||
299 | |||
300 | return @list; | ||
301 | } | ||
302 | |||
303 | sub stablebuilds { | ||
304 | my @list; | ||
305 | |||
306 | for my $b (sort byname keys %builds) { | ||
307 | push @list, $b if ($builds{$b}{status} >= 3); | ||
308 | } | ||
309 | |||
310 | return @list; | ||
311 | } | ||
312 | |||
313 | 1; | ||
314 | $publicrelease="3.4"; | ||
315 | $releasedate="September 24, 2009"; | ||
316 | $releasenotes="/wiki/ReleaseNotes34"; | ||
317 | |||
318 | %builds = ( | ||
319 | 'archosav300' => { | ||
320 | name => 'Archos AV300', | ||
321 | status => 1, # 3=stable, 2=unstable, 1=unusable | ||
322 | }, | ||
323 | 'archosfmrecorder' => { | ||
324 | name => 'Archos FM Recorder', | ||
325 | status => 3, | ||
326 | }, | ||
327 | 'archosondiofm' => { | ||
328 | name => 'Archos Ondio FM', | ||
329 | status => 3, | ||
330 | }, | ||
331 | 'archosondiosp' => { | ||
332 | name => 'Archos Ondio SP', | ||
333 | status => 3, | ||
334 | }, | ||
335 | 'archosplayer' => { | ||
336 | name => 'Archos Player/Studio', | ||
337 | status => 3, | ||
338 | }, | ||
339 | 'archosrecorder' => { | ||
340 | name => 'Archos Recorder v1', | ||
341 | status => 3, | ||
342 | }, | ||
343 | 'archosrecorderv2' => { | ||
344 | name => 'Archos Recorder v2', | ||
345 | status => 3, | ||
346 | }, | ||
347 | 'cowond2' => { | ||
348 | name => 'Cowon D2', | ||
349 | status => 2, | ||
350 | }, | ||
351 | 'gigabeatfx' => { | ||
352 | name => 'Toshiba Gigabeat F/X', | ||
353 | status => 3, | ||
354 | }, | ||
355 | 'gigabeats' => { | ||
356 | name => 'Toshiba Gigabeat S', | ||
357 | status => 2, | ||
358 | }, | ||
359 | 'gogearhdd1630' => { | ||
360 | name => 'Philips GoGear HDD1630', | ||
361 | status => 1, | ||
362 | }, | ||
363 | 'gogearsa9200' => { | ||
364 | name => 'Philips GoGear SA9200', | ||
365 | status => 1, | ||
366 | }, | ||
367 | 'iaudio7' => { | ||
368 | name => 'iAudio 7', | ||
369 | status => 1, | ||
370 | }, | ||
371 | 'iaudiom3' => { | ||
372 | name => 'iAudio M3', | ||
373 | status => 3, | ||
374 | }, | ||
375 | 'iaudiom5' => { | ||
376 | name => 'iAudio M5', | ||
377 | status => 3, | ||
378 | }, | ||
379 | 'iaudiox5' => { | ||
380 | name => 'iAudio X5', | ||
381 | status => 3, | ||
382 | }, | ||
383 | 'ipod1g2g' => { | ||
384 | name => 'iPod 1st and 2nd gen', | ||
385 | status => 3, | ||
386 | }, | ||
387 | 'ipod3g' => { | ||
388 | name => 'iPod 3rd gen', | ||
389 | status => 3, | ||
390 | }, | ||
391 | 'ipod4g' => { | ||
392 | name => 'iPod 4th gen Grayscale', | ||
393 | status => 3, | ||
394 | }, | ||
395 | 'ipodcolor' => { | ||
396 | name => 'iPod color/Photo', | ||
397 | status => 3, | ||
398 | }, | ||
399 | 'ipodmini1g' => { | ||
400 | name => 'iPod Mini 1st gen', | ||
401 | status => 3, | ||
402 | manual => 'ipodmini2g', | ||
403 | }, | ||
404 | 'ipodmini2g' => { | ||
405 | name => 'iPod Mini 2nd gen', | ||
406 | status => 3, | ||
407 | icon => 'ipodmini1g', | ||
408 | }, | ||
409 | 'ipodnano1g' => { | ||
410 | name => 'iPod Nano 1st gen', | ||
411 | status => 3, | ||
412 | }, | ||
413 | 'ipodnano2g' => { | ||
414 | name => 'iPod Nano 2nd gen', | ||
415 | status => 3, | ||
416 | }, | ||
417 | 'ipodvideo' => { | ||
418 | name => 'iPod Video 30GB', | ||
419 | status => 3, | ||
420 | }, | ||
421 | 'ipodvideo64mb' => { | ||
422 | name => 'iPod Video 60/80GB', | ||
423 | status => 3, | ||
424 | icon => 'ipodvideo', | ||
425 | manual => 'ipodvideo', | ||
426 | voice => 'ipodvideo', | ||
427 | configname => 'ipodvideo', | ||
428 | ram => 64 | ||
429 | }, | ||
430 | 'iriverh10' => { | ||
431 | name => 'iriver H10 20GB', | ||
432 | status => 3, | ||
433 | }, | ||
434 | 'iriverh10_5gb' => { | ||
435 | name => 'iriver H10 5GB', | ||
436 | status => 3, | ||
437 | manual => 'iriverh10', | ||
438 | }, | ||
439 | 'iriverh100' => { | ||
440 | name => 'iriver H100/115', | ||
441 | status => 3, | ||
442 | }, | ||
443 | 'iriverh120' => { | ||
444 | name => 'iriver H120/140', | ||
445 | status => 3, | ||
446 | icon => 'iriverh100', | ||
447 | manual => 'iriverh100', | ||
448 | }, | ||
449 | 'iriverh300' => { | ||
450 | name => 'iriver H320/340', | ||
451 | status => 3, | ||
452 | }, | ||
453 | 'iriverifp7xx' => { | ||
454 | name => 'iriver iFP-7xx', | ||
455 | status => 1, | ||
456 | }, | ||
457 | 'logikdax' => { | ||
458 | name => 'Logik DAX', | ||
459 | status => 1, | ||
460 | }, | ||
461 | 'lyreproto1' => { | ||
462 | name => 'Lyre Prototype 1', | ||
463 | status => 1, | ||
464 | }, | ||
465 | 'mini2440' => { | ||
466 | name => 'Mini 2440', | ||
467 | status => 1, | ||
468 | }, | ||
469 | 'meizum3' => { | ||
470 | name => 'Meizu M3', | ||
471 | status => 1, | ||
472 | }, | ||
473 | 'meizum6sl' => { | ||
474 | name => 'Meizu M6SL', | ||
475 | status => 1, | ||
476 | }, | ||
477 | 'meizum6sp' => { | ||
478 | name => 'Meizu M6SP', | ||
479 | status => 1, | ||
480 | }, | ||
481 | 'mrobe100' => { | ||
482 | name => 'Olympus M-Robe 100', | ||
483 | status => 3, | ||
484 | }, | ||
485 | 'mrobe500' => { | ||
486 | name => 'Olympus M-Robe 500', | ||
487 | status => 2, | ||
488 | }, | ||
489 | 'ondavx747' => { | ||
490 | name => 'Onda VX747', | ||
491 | status => 1, | ||
492 | }, | ||
493 | 'ondavx747p' => { | ||
494 | name => 'Onda VX747+', | ||
495 | status => 1, | ||
496 | }, | ||
497 | 'ondavx767' => { | ||
498 | name => 'Onda VX767', | ||
499 | status => 1, | ||
500 | }, | ||
501 | 'ondavx777' => { | ||
502 | name => 'Onda VX777', | ||
503 | status => 1, | ||
504 | }, | ||
505 | 'samsungyh820' => { | ||
506 | name => 'Samsung YH-820', | ||
507 | status => 2, | ||
508 | }, | ||
509 | 'samsungyh920' => { | ||
510 | name => 'Samsung YH-920', | ||
511 | status => 2, | ||
512 | }, | ||
513 | 'samsungyh925' => { | ||
514 | name => 'Samsung YH-925', | ||
515 | status => 2, | ||
516 | }, | ||
517 | 'samsungyps3' => { | ||
518 | name => 'Samsung YP-S3', | ||
519 | status => 1, | ||
520 | }, | ||
521 | 'sansac100' => { | ||
522 | name => 'SanDisk Sansa c100', | ||
523 | status => 1, | ||
524 | }, | ||
525 | 'sansac200' => { | ||
526 | name => 'SanDisk Sansa c200', | ||
527 | status => 3, | ||
528 | }, | ||
529 | 'sansac200v2' => { | ||
530 | name => 'SanDisk Sansa c200 v2', | ||
531 | status => 1, | ||
532 | icon => 'sansac200', | ||
533 | }, | ||
534 | 'sansaclip' => { | ||
535 | name => 'SanDisk Sansa Clip', | ||
536 | status => 2, | ||
537 | }, | ||
538 | 'sansaclipv2' => { | ||
539 | name => 'SanDisk Sansa Clip v2', | ||
540 | status => 1, | ||
541 | }, | ||
542 | 'sansae200' => { | ||
543 | name => 'SanDisk Sansa e200', | ||
544 | status => 3, | ||
545 | }, | ||
546 | 'sansae200r' => { | ||
547 | name => 'SanDisk Sansa e200R', | ||
548 | status => 3, | ||
549 | icon => 'sansae200', | ||
550 | }, | ||
551 | 'sansae200v2' => { | ||
552 | name => 'SanDisk Sansa e200 v2', | ||
553 | status => 3, | ||
554 | icon => 'sansae200', | ||
555 | }, | ||
556 | 'sansafuze' => { | ||
557 | name => 'SanDisk Sansa Fuze', | ||
558 | status => 2, | ||
559 | }, | ||
560 | 'sansam200' => { | ||
561 | name => 'SanDisk Sansa m200', | ||
562 | status => 1, | ||
563 | }, | ||
564 | 'sansam200v4' => { | ||
565 | name => 'SanDisk Sansa m200 v4', | ||
566 | status => 1, | ||
567 | }, | ||
568 | 'sansaview' => { | ||
569 | name => 'SanDisk Sansa View', | ||
570 | status => 1, | ||
571 | }, | ||
572 | 'tatungtpj1022' => { | ||
573 | name => 'Tatung Elio TPJ-1022', | ||
574 | status => 1, | ||
575 | }, | ||
576 | 'zenvision' => { | ||
577 | name => 'Creative Zen Vision', | ||
578 | status => 1, | ||
579 | }, | ||
580 | 'zenvisionm30gb' => { | ||
581 | name => 'Creative Zen Vision:M 30GB', | ||
582 | status => 1, | ||
583 | }, | ||
584 | 'zenvisionm60gb' => { | ||
585 | name => 'Creative Zen Vision:M 60GB', | ||
586 | status => 1, | ||
587 | }, | ||
588 | ); | ||
589 | |||
590 | sub manualname { | ||
591 | my $m = shift @_; | ||
592 | |||
593 | return $builds{$m}{manual} ? "$builds{$m}{manual}" : $m; | ||
594 | } | ||
595 | |||
596 | sub voicename { | ||
597 | my $m = shift @_; | ||
598 | |||
599 | return $builds{$m}{voice} ? "$builds{$m}{voice}" : $m; | ||
600 | } | ||
601 | |||
602 | sub byname { | ||
603 | return $builds{$a}{name} cmp $builds{$b}{name}; | ||
604 | } | 291 | } |
605 | 292 | ||
606 | sub usablebuilds { | 293 | sub usablebuilds { |