[36756] users/ryandesign/minivmac/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed May 14 01:04:25 PDT 2008


Revision: 36756
          http://trac.macosforge.org/projects/macports/changeset/36756
Author:   ryandesign at macports.org
Date:     2008-05-14 01:04:24 -0700 (Wed, 14 May 2008)

Log Message:
-----------
minivmac: copy the autoquit program to the Disk Tools disk

Modified Paths:
--------------
    users/ryandesign/minivmac/Portfile

Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile	2008-05-14 07:43:54 UTC (rev 36755)
+++ users/ryandesign/minivmac/Portfile	2008-05-14 08:04:24 UTC (rev 36756)
@@ -29,7 +29,8 @@
 set my_bootstrap_version                    3.0.4
 set my_bootstrap                            "Mini vMac.app"
 set my_bootstrap_compressed                 ${name}-${my_bootstrap_version}-umch.bin.tgz
-set my_autoquit_compressed                  autquit7-1.1.0.zip
+set my_autoquit                             autquit7-1.1.0
+set my_autoquit_compressed                  ${my_autoquit}.zip
 set my_system_disk_container                Z-System_7.0.1.smi
 set my_system_disk_container_compressed     ${my_system_disk_container}.bin
 
@@ -103,11 +104,24 @@
 	
 	# The disk image mounter likes images to have the .img extension.
 	file rename ${workpath}/${my_src}/${my_src}.dsk ${workpath}/src.img
+	file rename ${workpath}/${my_autoquit}/${my_autoquit}.dsk ${workpath}/autoquit.img
 	
+	# Mount disk images.
+	set my_autoquit_disk_mount [attach_disk_image ${workpath}/autoquit.img 0]
+	set my_startup_disk_mount [attach_disk_image ${workpath}/startup.img 1]
+	
 	# Make room on the startup disk for our things.
-	set my_startup_disk_mount [attach_disk_image ${workpath}/startup.img 1]
 	file delete "${my_startup_disk_mount}/Apple HD SC Setup" "${my_startup_disk_mount}/Disk First Aid"
+	
+	# Set up autoquit.
+	set my_startup_disk_autoquit_dir "${my_startup_disk_mount}/autoquit"
+	file mkdir "${my_startup_disk_autoquit_dir}"
+	# Need to copy this with the resource fork.
+	system "ditto --rsrc ${my_autoquit_disk_mount}/AutQuit7 ${my_startup_disk_autoquit_dir}"
+	
+	# Unmount disk images.
 	detach_disk_image ${my_startup_disk_mount}
+	detach_disk_image ${my_autoquit_disk_mount}
 	
 	# Mini vMac looks for disks named disk1.dsk through disk3.dsk and automounts them.
 	file rename "${workpath}/startup.img" "${my_mnvm_dat}/disk1.dsk"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080514/d2a67e5c/attachment-0001.html


More information about the macports-changes mailing list