#!/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=`head -1 ../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 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 /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"