Commit ce860f78 authored by Ralf Treinen's avatar Ralf Treinen

Imported Upstream version 0.16.0

parent 021bb24d
dependencies.cmo: dep_parse.cmo files.cmo params.cmo
dependencies.cmx: dep_parse.cmx files.cmx params.cmx
dep_error.cmo: files.cmo
dep_error.cmx: files.cmx
dep_parse.cmo: files.cmo
dep_parse.cmx: files.cmx
dep_sort.cmo: dep_error.cmo params.cmo
dep_sort.cmx: dep_error.cmx params.cmx
main.cmo: dep_error.cmo dep_parse.cmo dep_sort.cmo dependencies.cmo files.cmo \
params.cmo
main.cmx: dep_error.cmx dep_parse.cmx dep_sort.cmx dependencies.cmx files.cmx \
params.cmx
params.cmo: files.cmo
params.cmx: files.cmx
ocamldsort 0.16.0:
* now compatible with OCaml 4.00
ocamldsort 0.15.0:
* made compatible with ocaml 3.12
* now compatible with OCaml 3.12
ocamldsort 0.14.4:
......@@ -13,7 +17,7 @@ ocamldsort 0.14.3:
ocamldsort 0.14.2:
* configure.in fixed so that it accepts ocaml version with x.y.z format
* configure.in fixed so that it accepts OCaml version with x.y.z format
ocamldsort 0.14.1:
......
The ocamldsort command scans a set of Objective Caml source files (.ml
and .mli files), sorts them according to their dependencies and prints
the sorted files in order to link their corresponding .cmo files.
The ocamldsort command scans a set of OCaml source files (.ml and .mli
files), sorts them according to their dependencies and prints the sorted
files in order to link their corresponding .cmo files.
For ocamldsort to work it must get a list of dependencies generated by
ocamldep, if the standard input to ocamldsort has been redirected
......
Thank you to:
Thanks to:
* Julien Signoles (.mli support)
* Allan Clark (cycles printing support and corrections in the README file)
* Roberto Di Cosmo (compatiblity with OCaml 3.12 and 4.00)
This diff is collapsed.
......@@ -27,21 +27,21 @@ let concat char string =
string_of_char char ^ string
let rec parse_source = parser
| [< '' ' >] -> ("", true)
| [< ''\n' >] -> ("", false)
| [< 'a; (d, cont) = parse_source >] -> (concat a d, cont)
| [< '' ' >] -> ""
| [< 'a when a <> '\n'; d = parse_source >] -> concat a d
| [< >] -> ""
let rec parse_sources = parser
| [< '' '; d = parse_sources >] -> d
| [< ''\\'; ''\n'; d = parse_sources >] -> d
| [< ''\n' >] -> []
| [< 'a; (d, cont) = parse_source;
ds = if cont then parse_sources else (fun _ -> []) >] ->
(Files.file_of_filename (concat a d)) :: ds
| [< 'a; d = parse_source; ds = parse_sources >] ->
(Files.file_of_filename (concat a d)) :: ds
let rec parse_target = parser
| [< '':' >] -> ""
| [< 'a; n = parse_target >] -> concat a n
| [< '' '; _ = parse_target >] -> ""
| [< 'a; n = parse_target >] -> concat a n
let rec parse_ocamldep stream =
try
......
......@@ -32,7 +32,7 @@ let add_filename filename =
filenames := filename :: !filenames
let usage = "Usage: ocamldsort [options] <files>"
let version = "ocamldsort 0.15.0"
let version = "ocamldsort 0.16.0"
let print_version () = print_endline version; exit 0
let is_input_a_tty () =
......
......@@ -12,9 +12,9 @@ ocamldsort \- Dependency sorter for OCaml source files
The
.BR ocamldsort (1)
command scans a set of Objective Caml source files (.ml
and .mli files), sorts them according to their dependencies and prints
the sorted files in order to link their corresponding .cmo files.
command scans a set of OCaml source files (.ml and .mli files), sorts them
according to their dependencies and prints the sorted files in order to link
their corresponding .cmo files.
For
.BR ocamldsort (1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment