summaryrefslogtreecommitdiffstats
path: root/ocamlbuild/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ocamlbuild/examples')
-rw-r--r--ocamlbuild/examples/example1/hello.ml12
-rw-r--r--ocamlbuild/examples/example2/greet.ml12
-rw-r--r--ocamlbuild/examples/example2/hello.ml12
-rw-r--r--ocamlbuild/examples/example3/epoch.ml12
-rwxr-xr-xocamlbuild/examples/example3/make.sh12
5 files changed, 60 insertions, 0 deletions
diff --git a/ocamlbuild/examples/example1/hello.ml b/ocamlbuild/examples/example1/hello.ml
index c85cb66b8..f21b6ae13 100644
--- a/ocamlbuild/examples/example1/hello.ml
+++ b/ocamlbuild/examples/example1/hello.ml
@@ -1,3 +1,15 @@
+(***********************************************************************)
+(* *)
+(* ocamlbuild *)
+(* *)
+(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
+(* *)
+(* Copyright 2007 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. *)
+(* *)
+(***********************************************************************)
+
let _ =
Printf.printf "Hello, %s ! My name is %s\n"
(if Array.length Sys.argv > 1 then Sys.argv.(1) else "stranger")
diff --git a/ocamlbuild/examples/example2/greet.ml b/ocamlbuild/examples/example2/greet.ml
index ec8088916..84f1e28f2 100644
--- a/ocamlbuild/examples/example2/greet.ml
+++ b/ocamlbuild/examples/example2/greet.ml
@@ -1,3 +1,15 @@
+(***********************************************************************)
+(* *)
+(* ocamlbuild *)
+(* *)
+(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
+(* *)
+(* Copyright 2007 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. *)
+(* *)
+(***********************************************************************)
+
type how = Nicely | Badly;;
let greet how who =
diff --git a/ocamlbuild/examples/example2/hello.ml b/ocamlbuild/examples/example2/hello.ml
index b48806a3d..4dee0a703 100644
--- a/ocamlbuild/examples/example2/hello.ml
+++ b/ocamlbuild/examples/example2/hello.ml
@@ -1,3 +1,15 @@
+(***********************************************************************)
+(* *)
+(* ocamlbuild *)
+(* *)
+(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
+(* *)
+(* Copyright 2007 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. *)
+(* *)
+(***********************************************************************)
+
open Greet
let _ =
diff --git a/ocamlbuild/examples/example3/epoch.ml b/ocamlbuild/examples/example3/epoch.ml
index ad95a0394..0d235d163 100644
--- a/ocamlbuild/examples/example3/epoch.ml
+++ b/ocamlbuild/examples/example3/epoch.ml
@@ -1,3 +1,15 @@
+(***********************************************************************)
+(* *)
+(* ocamlbuild *)
+(* *)
+(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
+(* *)
+(* Copyright 2007 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. *)
+(* *)
+(***********************************************************************)
+
let _ =
let s = Num.num_of_string (Printf.sprintf "%.0f" (Unix.gettimeofday ())) in
let ps = Num.mult_num (Num.num_of_string "1000000000000") s in
diff --git a/ocamlbuild/examples/example3/make.sh b/ocamlbuild/examples/example3/make.sh
index 3588a713f..e64152e11 100755
--- a/ocamlbuild/examples/example3/make.sh
+++ b/ocamlbuild/examples/example3/make.sh
@@ -1,5 +1,17 @@
#!/bin/sh
+#########################################################################
+# #
+# OCaml #
+# #
+# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
+# #
+# Copyright 2007 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. #
+# #
+#########################################################################
+
set -e
TARGET=epoch