#!/bin/sh #************************************************************************** #* * #* OCaml * #* * #* 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 GNU Lesser General Public License version 2.1, with the * #* special exception on linking described in the file LICENSE. * #* * #************************************************************************** cd package-macosx rm -rf ocaml.pkg ocaml-rw.dmg VERSION=`sed -e 1q ../VERSION` VERSION_MAJOR=`sed -n -e '1s/^\([0-9]*\)\..*/\1/p' ../VERSION` VERSION_MINOR=`sed -n -e '1s/^[0-9]*\.\([0-9]*\)[.+].*/\1/p' ../VERSION` cat >Description.plist < IFPkgDescriptionDeleteWarning IFPkgDescriptionDescription The OCaml compiler and tools IFPkgDescriptionTitle OCaml IFPkgDescriptionVersion ${VERSION} EOF cat >Info.plist < CFBundleGetInfoString OCaml ${VERSION} CFBundleIdentifier fr.inria.ocaml CFBundleName OCaml CFBundleShortVersionString ${VERSION} IFMajorVersion ${VERSION_MAJOR} IFMinorVersion ${VERSION_MINOR} IFPkgFlagAllowBackRev IFPkgFlagAuthorizationAction AdminAuthorization IFPkgFlagDefaultLocation /usr/local 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/$volname" sleep 2 hdiutil detach $name rm -rf "ocaml-${VERSION}.dmg" hdiutil convert ocaml-rw.dmg -format UDZO -o "ocaml-${VERSION}.dmg"