summaryrefslogtreecommitdiff
path: root/tools/make-package-macosx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/make-package-macosx')
-rwxr-xr-xtools/make-package-macosx52
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/make-package-macosx b/tools/make-package-macosx
deleted file mode 100755
index 8f574d9c0c..0000000000
--- a/tools/make-package-macosx
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/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 ocaml.dmg
-
-cat >ocaml.info <<EOF
- Title Objective Caml
- Version 3.06
- Description This package installs Objective Caml version 3.06
- DefaultLocation /
- Relocatable no
- NeedsAuthorization yes
- Application no
- InstallOnly no
- DisableStop no
-EOF
-
-package root ocaml.info
-
-size=`du -s ocaml.pkg | cut -f 1`
-size=`expr $size + 8192`
-
-hdiutil create -sectors $size ocaml-rw.dmg
-name=`hdid -nomount ocaml-rw.dmg | grep Apple_HFS | cut -d ' ' -f 1`
-newfs_hfs -v 'Objective Caml' $name
-hdiutil detach $name
-
-name=`hdid ocaml-rw.dmg | grep Apple_HFS | cut -d ' ' -f 1`
-if test -d '/Volumes/Objective Caml'; then
- ditto -rsrcFork ocaml.pkg "/Volumes/Objective Caml/ocaml.pkg"
-else
- echo 'Unable to mount the disk image as "/Volumes/Objective Caml"' >&2
- exit 3
-fi
-open "/Volumes/Objective Caml"
-hdiutil detach $name
-
-hdiutil convert ocaml-rw.dmg -format UDZO -o ocaml.dmg