#!/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 -rf ocaml.pkg ocaml-rw.dmg VERSION=`sed -n -e '/ocaml_version/s/.*"\([^"]*\)".*/\1/p' ../stdlib/sys.ml` VERSION_MAJOR=`sed -n -e '/ocaml_version/s/.*"\([0-9]*\)\..*/\1/p' \ ../stdlib/sys.ml` VERSION_MINOR=`sed -n -e '/ocaml_version/s/.*"[0-9]*\.\([0-9]*\)[.+].*/\1/p' \ ../stdlib/sys.ml` # Worked in 10.2: # cat >ocaml.info <Description.plist < IFPkgDescriptionDeleteWarning IFPkgDescriptionDescription The Objective Caml compiler and tools IFPkgDescriptionTitle Objective Caml IFPkgDescriptionVersion ${VERSION} EOF cat >Info.plist < CFBundleGetInfoString Objective Caml ${VERSION} CFBundleIdentifier fr.inria.ocaml CFBundleName Objective Caml CFBundleShortVersionString ${VERSION} IFMajorVersion ${VERSION_MAJOR} IFMinorVersion ${VERSION_MINOR} IFPkgFlagAllowBackRev IFPkgFlagAuthorizationAction AdminAuthorization IFPkgFlagDefaultLocation / IFPkgFlagInstallFat IFPkgFlagIsRequired IFPkgFlagRelocatable IFPkgFlagRestartAction NoRestart IFPkgFlagRootVolumeOnly IFPkgFlagUpdateInstalledLanguages IFPkgFormatVersion 0.10000000149011612 EOF mkdir -p resources # stop here -> | cat >resources/ReadMe.txt <&2 exit 3 fi open "/Volumes/Objective Caml" hdiutil detach $name rm -rf "ocaml-${VERSION}.dmg" hdiutil convert ocaml-rw.dmg -format UDZO -o "ocaml${VERSION}.dmg"