Author: abock
Date: 2007-03-23 10:54:20 -0500 (Fri, 23 Mar 2007)
New Revision: 74883

Modified:
   trunk/ipod-sharp/
   trunk/ipod-sharp/ChangeLog
   trunk/ipod-sharp/ipod-sharp.mdp
   trunk/ipod-sharp/ipod-sharp.mds
   trunk/ipod-sharp/src/
   trunk/ipod-sharp/src/Firmware/
   trunk/ipod-sharp/src/Firmware/DmgFirmwareExtract.cs
   trunk/ipod-sharp/tests/
   trunk/ipod-sharp/tools/
   trunk/ipod-sharp/ui/
Log:
2007-03-23  Aaron Bockover  <[EMAIL PROTECTED]>

    * src/Firmware/DmgFirmwareExtract.cs: Updated so my old work isn't lost,
    but with iTunes 7, they shattered my dreams of firmware updating... for now




Property changes on: trunk/ipod-sharp
___________________________________________________________________
Name: svn:ignore
   + configure
Makefile.in
*.user*
config.*
INSTALL
Makefile
autom4te.cache
missing
aclocal.m4
install-sh
ipod-sharp.pc



Modified: trunk/ipod-sharp/ChangeLog
===================================================================
--- trunk/ipod-sharp/ChangeLog  2007-03-23 15:28:27 UTC (rev 74882)
+++ trunk/ipod-sharp/ChangeLog  2007-03-23 15:54:20 UTC (rev 74883)
@@ -1,3 +1,8 @@
+2007-03-23  Aaron Bockover  <[EMAIL PROTECTED]>
+
+       * src/Firmware/DmgFirmwareExtract.cs: Updated so my old work isn't 
lost, 
+       but with iTunes 7, they shattered my dreams of firmware updating... for 
now
+
 2007-03-19  James Willcox  <[EMAIL PROTECTED]>
 
        * src/TrackDatabase.cs: bump the supported database version to 20

Modified: trunk/ipod-sharp/ipod-sharp.mdp
===================================================================
--- trunk/ipod-sharp/ipod-sharp.mdp     2007-03-23 15:28:27 UTC (rev 74882)
+++ trunk/ipod-sharp/ipod-sharp.mdp     2007-03-23 15:54:20 UTC (rev 74883)
@@ -13,6 +13,7 @@
       <CodeGeneration compiler="Csc" warninglevel="4" optimize="True" 
unsafecodeallowed="True" generateoverflowchecks="True" mainclass="" 
generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
     </Configuration>
   </Configurations>
+  <DeployTargets />
   <DeploymentInformation strategy="File">
     <excludeFiles />
   </DeploymentInformation>

Modified: trunk/ipod-sharp/ipod-sharp.mds
===================================================================
--- trunk/ipod-sharp/ipod-sharp.mds     2007-03-23 15:28:27 UTC (rev 74882)
+++ trunk/ipod-sharp/ipod-sharp.mds     2007-03-23 15:54:20 UTC (rev 74883)
@@ -7,6 +7,7 @@
       <Entry build="True" name="ipod-sharp" configuration="Debug" />
     </Configuration>
   </Configurations>
+  <DeployTargets />
   <StartMode startupentry="ipod-sharp" single="True">
     <Execute type="None" entry="ipod-sharp" />
   </StartMode>


Property changes on: trunk/ipod-sharp/src
___________________________________________________________________
Name: svn:ignore
   + *.mdb
*.exe
*.dll
Makefile.in
Makefile
ipod-sharp-docs.tree
ipod-sharp-docs.zip




Property changes on: trunk/ipod-sharp/src/Firmware
___________________________________________________________________
Name: svn:ignore
   + *.mdb
*.dll
Makefile
Makefile.in



Modified: trunk/ipod-sharp/src/Firmware/DmgFirmwareExtract.cs
===================================================================
--- trunk/ipod-sharp/src/Firmware/DmgFirmwareExtract.cs 2007-03-23 15:28:27 UTC 
(rev 74882)
+++ trunk/ipod-sharp/src/Firmware/DmgFirmwareExtract.cs 2007-03-23 15:54:20 UTC 
(rev 74883)
@@ -37,6 +37,7 @@
                 ExtractDmgImage(dmgFile);
                 MountIsoImage();
                 ExtractFirmwareArchive();
+                ExtractLicenseAgreements();
             } finally {
                 UnmountIsoImage();
                 File.Delete(iso_path);
@@ -87,13 +88,21 @@
             }
         }
         
+        private void ExtractLicenseAgreements()
+        {
+            foreach(DirectoryInfo directory in new 
DirectoryInfo(ResourcesPath).GetDirectories("*.lproj")) {
+                string license_extract_name = String.Format("{0}.rtf", 
+                    directory.Name.Substring(0, directory.Name.Length - 6));
+                File.Copy(Path.Combine(directory.FullName, "License.rtf"), 
+                    Path.Combine(firmware_export_path, license_extract_name));
+            }
+        }
+        
         private void ExtractFirmwareArchive()
         {
             string ipod_package = null;
-            string packages = Path.Combine(dmg_mount, 
-                String.Format("iPod.mpkg{0}Contents{0}Resources", 
Path.DirectorySeparatorChar));
             
-            foreach(DirectoryInfo directory in new 
DirectoryInfo(packages).GetDirectories("iPod*.pkg")) {
+            foreach(DirectoryInfo directory in new 
DirectoryInfo(ResourcesPath).GetDirectories("iPod*.pkg")) {
                 ipod_package = directory.FullName;
                 break;
             }
@@ -155,5 +164,12 @@
                 throw new ApplicationException(message);
             }
         }
+        
+        public string ResourcesPath { 
+            get { 
+                return Path.Combine(dmg_mount, 
String.Format("iPod.mpkg{0}Contents{0}Resources", 
+                    Path.DirectorySeparatorChar));
+            }
+        }
     }
 }


Property changes on: trunk/ipod-sharp/tests
___________________________________________________________________
Name: svn:ignore
   + *.dll
*.mdb
Makefile
Makefile.in




Property changes on: trunk/ipod-sharp/tools
___________________________________________________________________
Name: svn:ignore
   + *.mdb
*.dll
*.exe
Makefile
Makefile.in




Property changes on: trunk/ipod-sharp/ui
___________________________________________________________________
Name: svn:ignore
   + *.dll
*.mdb
Makefile
Makefile.in



_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to