package macosx: ajout disk image
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5402 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
501d64ea6a
commit
2d4c4aaded
3
Makefile
3
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue