Skip to content
Browse files

added dmg-and-checkout script

  • Loading branch information...
1 parent c94dec0 commit b63f54f652906e797220cdb9e340be50349d8d96 Ruotger Skupin committed Oct 30, 2009
Showing with 21 additions and 0 deletions.
  1. +21 −0 makeDmgAndCheckout.sh
View
21 makeDmgAndCheckout.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+DMGPATH="OpenSolaris"
+VOLNAME="SolarisSource"
+
+echo "creating dmg..."
+hdiutil create -size 10g "$DMGPATH" -type SPARSEBUNDLE -fs HFSX -volname "$VOLNAME"
+
+echo "attaching dmg..."
+hdiutil attach "$DMGPATH.sparsebundle"
+
+(
+ cd "/Volumes/$VOLNAME"
+
+ echo "checking out Solaris hg repo"
+ hg clone ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate
+)
+
+echo "detaching dmg..."
+hdiutil detach "/Volumes/$VOLNAME"
+

0 comments on commit b63f54f

Please sign in to comment.
Something went wrong with that request. Please try again.