package macosx: ajout disk image

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5402 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2003-02-24 17:15:12 +00:00
parent 501d64ea6a
commit 2d4c4aaded
2 changed files with 33 additions and 2 deletions

View File

@ -629,8 +629,7 @@ package-macosx: FORCE
make BINDIR="`pwd`"/package-macosx/root$(BINDIR) \
LIBDIR="`pwd`"/package-macosx/root$(LIBDIR) \
MANDIR="`pwd`"/package-macosx/root$(MANDIR) install
cd package-macosx; package root ocaml.info; \
tar cvf ocaml-macosx.tar ocaml.pkg
tools/make-package-macosx
# Default rules

32
tools/make-package-macosx Executable file
View File

@ -0,0 +1,32 @@
#!/bin/sh
#########################################################################
# #
# Objective Caml #
# #
# Damien Doligez, projet Moscova, INRIA Rocquencourt #
# #
# Copyright 2003 Institut National de Recherche en Informatique et #
# en Automatique. All rights reserved. This file is distributed #
# under the terms of the Q Public License version 1.0. #
# #
#########################################################################
# $Id$
cd package-macosx
rm -f ocaml.pkg ocaml.dmg
package root ocaml.info
size=`du -s ocaml.pkg | cut -f 1`
size=`expr \( $size \* 11 \) / 10 + 500`
hdiutil create -sectors $size ocaml.dmg
name=`hdid -nomount ocaml.dmg | grep Apple_HFS | cut -d ' ' -f 1`
newfs_hfs -v 'Objective Caml' $name
hdiutil detach $name
name=`hdid ocaml.dmg | grep Apple_HFS | cut -d ' ' -f 1`
ditto -rsrcFork ocaml.pkg "/Volumes/Objective Caml/ocaml.pkg"
hdiutil detach $name