Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2010  |  syntax: None  |  size: 2.60 KB  |  hits: 106  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/tools/buildzip.pl b/tools/buildzip.pl
  2. index 094214d..9f48dd1 100755
  3. --- a/tools/buildzip.pl
  4. +++ b/tools/buildzip.pl
  5. @@ -305,6 +305,47 @@ sub filesize {
  6.      return $size;
  7.  }
  8.  
  9. +sub create_failsafefiles {
  10. +    my ($dir) = @_;
  11. +    my $text = "# Dummy file to allow Rockbox to reset to the default skin config.
  12. +# Do not edit this file.  It's never actually loaded by Rockbox.";
  13. +    open (FOO, ">$dir/wps/rockbox_failsafe.wps");
  14. +    print FOO $text;
  15. +    close(FOO);
  16. +    open (FOO, ">$dir/wps/rockbox_failsafe.rwps");
  17. +    print FOO $text;
  18. +    close(FOO);
  19. +    open (FOO, ">$dir/wps/rockbox_failsafe.sbs");
  20. +    print FOO $text;
  21. +    close(FOO);
  22. +    open (FOO, ">$dir/wps/rockbox_failsafe.rsbs");
  23. +    print FOO $text;
  24. +    close(FOO);
  25. +    open (FOO, ">$dir/wps/rockbox_failsafe.fms");
  26. +    print FOO $text;
  27. +    close(FOO);
  28. +    open (FOO, ">$dir/wps/rockbox_failsafe.rfms");
  29. +    print FOO $text;
  30. +    close(FOO);
  31. +    open (FOO, ">$dir/themes/rockbox_failsafe.cfg");
  32. +    print FOO <<STOP
  33. +# This config has been autogenerated to reload the failsafe setup
  34. +wps: $dir/wps/rockbox_failsafe.wps
  35. +rwps: $dir/wps/rockbox_failsafe.rwps
  36. +sbs: $dir/wps/rockbox_failsafe.sbs
  37. +rsbs: $dir/wps/rockbox_failsafe.rsbs
  38. +fms: $dir/wps/rockbox_failsafe.fms
  39. +rfms: $dir/wps/rockbox_failsafe.rfms
  40. +statusbar: top
  41. +font: 08-Schumacher-Clean.fnt
  42. +foreground color: 000000
  43. +background color: B6C6E5
  44. +selector type: bar (inverse)
  45. +STOP
  46. +;
  47. +    close(FOO);
  48. +}
  49. +
  50.  sub buildzip {
  51.      my ($image, $fonts)=@_;    
  52.      my $libdir = $install;
  53. @@ -508,6 +549,7 @@ STOP
  54.               "$temp_dir/rocks/demos/pictureflow_splash.bmp");
  55.  
  56.      }
  57. +    create_failsafefiles($temp_dir);
  58.  
  59.      if($image) {
  60.          # image is blank when this is a simulator
  61. @@ -572,7 +614,6 @@ STOP
  62.      } else {
  63.          copy("$ROOT/wps/classic_statusbar.112x64x1.sbs", "$temp_dir/wps/classic_statusbar.sbs");
  64.      }
  65. -    system("touch $temp_dir/wps/rockbox_none.sbs");
  66.      if ($remote_depth != $depth) {
  67.                 copy("$ROOT/wps/classic_statusbar.mono.sbs", "$temp_dir/wps/classic_statusbar.rsbs");
  68.         } else {
  69. diff --git a/wps/WPSLIST b/wps/WPSLIST
  70. index e382368..362df12 100644
  71. --- a/wps/WPSLIST
  72. +++ b/wps/WPSLIST
  73. @@ -42,23 +42,6 @@ selector type: bar (inverse)
  74.  </wps>
  75.  
  76.  <wps>
  77. -Name: rockbox_default.wps
  78. -RWPS: rockbox_default.rwps
  79. -SBS:
  80. -RSBS:
  81. -Author: Rockbox team
  82. -Font: 08-Schumacher-Clean.fnt
  83. -Font.11x2x1:
  84. -Statusbar: on
  85. -Foreground Color: 000000
  86. -Background Color: B6C6E5
  87. -backdrop:
  88. -iconset:
  89. -viewers iconset:
  90. -selector type: bar (inverse)
  91. -</wps>
  92. -
  93. -<wps>
  94.  Name: boxes.wps
  95.  rwps: boxes.rwps
  96.  SBS: