~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to build/myocamlbuild.sh

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# $Id: myocamlbuild.sh 8416 2007-10-08 14:19:34Z doligez $
 
2
 
 
3
#########################################################################
 
4
#                                                                       #
 
5
#                            Objective Caml                             #
 
6
#                                                                       #
 
7
#   Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt  #
 
8
#                                                                       #
 
9
#   Copyright 2007 Institut National de Recherche en Informatique et    #
 
10
#   en Automatique.  All rights reserved.  This file is distributed     #
 
11
#   under the terms of the Q Public License version 1.0.                #
 
12
#                                                                       #
 
13
#########################################################################
 
14
 
 
15
# $Id: myocamlbuild.sh 10449 2010-05-21 11:48:35Z doligez $
 
16
 
3
17
cd `dirname $0`/..
4
18
set -xe
5
19
if [ ! -x _build/ocamlbuild/ocamlbuildlight.byte ]; then
6
20
  if [ ! -x ocamlbuild/_build/ocamlbuildlight.byte ]; then
7
 
    (cd ocamlbuild && make)
 
21
    (cd ocamlbuild && ${GNUMAKE:-make})
8
22
  fi
9
23
  mkdir -p _build/ocamlbuild
10
 
        for i in "light.cmo" "light.byte" "lightlib.cma" "_plugin.cmi" "_pack.cmi"
 
24
  for i in "light.cmo" "light.byte" "lightlib.cma" "_plugin.cmi" "_pack.cmi"
11
25
  do
12
 
          cp ocamlbuild/_build/ocamlbuild$i _build/ocamlbuild
 
26
    cp ocamlbuild/_build/ocamlbuild$i _build/ocamlbuild
13
27
  done
14
28
fi
15
29
rm -f ocamlbuild/myocamlbuild_config.ml ocamlbuild/myocamlbuild_config.mli