Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 93 lines (72 sloc) 3.645 kb
1deb622 @mjambon Starting git repository for ocamlscript.
authored
1 VERSION 2
2 =========
3
db87340 @mjambon Version 2.0.3
authored
4 2012-02-03: release 2.0.3
5 - no user-visible behavior (new way of creating the source tar.gz)
6
1deb622 @mjambon Starting git repository for ocamlscript.
authored
7 2008-02-05: release 2.0.2
8 - supports OCaml/Camlp4 3.10.1
9
10 2007-04-07: release 2.0.1
11 - added support for OCaml/Camlp4 3.10.0+beta
12
13 2007-03-04: release 2.0.0
14 - small change in the interface of the Pipeline module (new_cmd -> command)
15 - added OCaml.pp (any preprocessor)
16 and Ocaml.ppsrcloc (location formatter) variables
17
18 2006-07-25: prerelease 1.99.5
19 - added support for ocamlyacc
20
21 2006-07-14: prerelease 1.99.4
22 - added Ocaml.sources variable that can hold additional source files, e.g.
23 Ocaml.sources := ["../thing1.ml"]
24
25 2006-06-24: pre-release 1.99.3
26 - separation of examples and tests
27 - added some examples
28
29 2006-06-07: pre-release 1.99.2
30 - replaced Sys.command by create_process so that arguments
31 with special characters are not subject to shell interpretation
32
33 2006-06-05: pre-release 1.99.1
34 - important bugfix (scripts with shebang line and no "--" line)
35 - not dependent of micmatch_pcre not pcre anymore
36
37 2006-06-03: pre-release 1.99.0, nothing really changed since last time
38
39 2006-27-03
40 This is an experimental extension of ocamlscript, which is
41 incompatible with ocamlscript 1.1.
42
43 Current features:
44 - each script must have two parts, which are separated by a line starting
45 with "--" and followed by any number of blanks.
46 - the first part gives instructions for the compilation of the second part,
47 which is the program itself (see "fulltest" file for an example).
48 - the first part can be empty or can contain some OCaml code which
49 makes a "compile" function visible at the end of the module.
50 - by default, the Ocamlscript.Ocamlopt module is opened, which makes
51 a "compile" function available.
52 - the signature of this "compile" function is the following:
53 val compile : string -> string -> int
54 Its arguments are (1) the name of the source file to compile and (2) the
55 name of the executable which must be produced. These names are chosen by
56 ocamlscript, not by the script author.
57 - the Ocamlopt module provides several hooks which can be used to
58 specify which libraries to use and other compilation options. It
59 uses the ocamlfind (Findlib) frontend to ocamlopt. The parameters
60 are currently initialized as follows:
61 let packs = ref [] (* findlib packages *)
62 let use_camlp4 = ref true (* by default camlp4 is used *)
63 let revised = ref false (* use this to use the revised syntax *)
64 let ocamlflags = ref [] (* any options that you may want to pass
65 to ocamlopt *)
66 let ppopt = ref [] (* any options that you may want to pass
67 to camlp4o or camlp4r *)
68 let verbose = ref false (* that's for debugging *)
69
70 - Any definition of a function named "compile" will override the
71 default one. Ocamlscript can be used to compile programs in any
72 language which accepts the same line directives as OCaml (it should
73 however be possible to make it more flexible in the future).
74 For now, it should be possible to define "compile" functions
75 for ocamllex or ocaml+twt (and include them in the Ocamlscript library).
76
77
78
79 VERSION 1
80 =========
81
82 * version 1.1 (2005-10-03):
83
84 - the temporary copy of the original script contains proper reference
85 to original source so line number and script name is correct in case
86 of error (suggestion of Mike Lin);
87
88 - change license to a BSD-like one. Apparently Public Domain imposes
89 restriction of Software redistribution on a different medium. The new
90 license should allow to use the software for about any use.
91
92 * version 1.0 (2005-08-23): original release.
Something went wrong with that request. Please try again.