summaryrefslogtreecommitdiffstats
path: root/ocamlbuild/examples
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2012-08-01 14:47:00 +0000
committerDamien Doligez <damien.doligez-inria.fr>2012-08-01 14:47:00 +0000
commit3dd2fee2ee2d30c789df6e8cd751e4bfb24323c0 (patch)
treeebc27d73d4f17eaec7305b42f7d835d3002ad10b /ocamlbuild/examples
parent4a8f35537433b4e17e33071667e63db4856d8196 (diff)
fix formatting of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12808 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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