debian/0000755000000000000000000000000012256131307007166 5ustar debian/caml2html.10000644000000000000000000001562012152164540011137 0ustar .\" groff -man -Tascii caml2html.1 .\" ========================================================================== .\" ============= Synopsis =================================================== .\" ========================================================================== .TH CAML2HTML 1 "May 2013" CAML2HTML "User Manuals" .SH NAME caml2html \- pretty print OCaml in html and latex .SH SYNOPSIS .B caml2html \fR[\fIOptions...\fR] \fIfiles\fR... .\" ========================================================================== .\" ============= Description ================================================ .\" ========================================================================== .SH DESCRIPTION .B caml2html pretty prints .B OCaml source code as html or LaTex files. The pretty printing uses colors and adds tool\(hytips with type annotations if the corresponding .annot file is present. .\" .\" ========================================================================== .P Without .I file arguments, .B caml2html reads from standard input. By default it writes to standard output. .\" .\" ========================================================================== .\" ================ Options ================================================= .\" ========================================================================== .\" .SH OPTIONS .\" ===================== -annotfilter ======================================= .TP .B "\-annotfilter {innermost|outermost}" choose whether innermost or outermost type annotations should be used (default: innermost) .\" ===================== -noannot ========================================== .TP .B "\-noannot" do not insert type annotations as read from .annot files (HTML output only) .\" ===================== -ln =============================================== .TP .B "\-ln" add line number at the beginning of each line .\" ===================== -hc =============================================== .TP .B "\-hc" comments are treated as raw HTML or LaTeX code (no newlines inside of tags) .\" ===================== -t ================================================ .TP .B "\-t" add a title to the HTML page .\" ===================== -body ============================================= .TP .B "\-body" output only document's body, for inclusion into an existing document (see also \-make\-css and \-make\-latex\-defs) .\" ===================== -nf =============================================== .TP .B "\-nf" do not add footnotes to the HTML page .\" ===================== -inhead =========================================== .TP .B "\-inhead" use default styling and place it in the section of the document (default when applicable) .\" ===================== -charset ================================= .TP .B "\-charset " specify charset to use (default: iso\-8859\-1) .\" ===================== -css ============================================== .TP .B "\-css" use separate CSS style file .I style.css .\" ===================== -cssurl ====================================== .TP .B "\-cssurl " use .I URL as CSS .\" ===================== -inline =========================================== .TP .B "\-inline" use inline styling (HTML only, default fallback if \-inhead is not applicable) .\" ===================== \-ie7 ============================================== .TP .B "\-ie7" drop support for type annotations on Internet Explorer 6 and older .\" ===================== -notab ============================================ .TP .B "\-notab" do not replace tabs by spaces .\" ===================== -tab ===================================== .TP .B "\-tab " replace tab by n spaces (default = 8) .\" ===================== -d ===================================== .TP .B "\-d " generate files in directory dir, rather than in current directory .\" ===================== -o ====================================== .TP .B "\-o " output file .\" ===================== -make-css =============================== .TP .B "\-make\-css " create CSS file with default color definitions and exit .\" ===================== -ext ==================================== .TP .B "\-ext " use the given external command CMD to handle comments that start with .I (*NAME\fR. .I NAME must be a lowercase identifier. See .B EXAMPLES below. .\" ===================== -latex ============================================ .TP .B "\-latex" output LaTeX code instead of HTML. .\" ===================== -make-latex-defs ======================== .TP .B "\-make\-latex\-defs " create a file containing the default LaTeX color definitions and matching highlighting commands, and exit. \\usepackage{alltt,color} is not included. .\" ===================== -v ================================================ .TP .B "\-v" print version number to stdout and exit .\" ===================== -help Display this list of options ================ .TP .B "\-help | \-\-help" Display options and exit. .\" .\" ========================================================================== .\" ================ Examples ================================================ .\" ========================================================================== .\" .SH EXAMPLES .\" Process many files into a single file: .P .RS caml2html \-o result.html *.mli *.ml .RE .P Process many files, and create one HTML page for each file: .P .RS caml2html *.ml .RE .P You can use HTML in the comments of the source file, for instance, to insert hyperlinks: .P .RS (* This is file1.ml. This is a link to file2.ml. *) .RE .P Note, that one HTML tag cannot span over several lines, and that the ordinary characters <, > and & must be written as <, > and &. .\" .\" ========================================================================== .P .B Custom comment handlers To implement an include directive for comments, use .P .RS caml2html \-ext "include: xargs cat" example.ml .RE .P Then .P .RS (*include i.html *) let f x = 2 * x + 1 .RE .P produces .P .RS ... contens of i.html ... let f x = 2 * x + 1 .RE .P as result. .\" .\" ========================================================================== .\" ================ SEE ALSO ================================================ .\" ========================================================================== .\" .SH SEE ALSO .TP The \fBcaml2html\fR web page, \fIhttp://mjambon.com/caml2html.html\fR .TP Some more examples are on .I /usr/share/doc/caml2html/caml2html.html .\" .\" ========================================================================== .\" ================ Author ================================================== .\" ========================================================================== .\" .SH AUTHOR This manual page was written by Sylvain Le Gall and Hendrik Tews , specifically for the Debian project (and may be used by others). debian/copyright0000644000000000000000000000376412152164540011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Caml2html Upstream-Contact: Martin Jambon Source: http://mjambon.com/caml2html.html Files: * Copyright: 2004-2010 Martin Jambon 2002-2004 Sébastien Ailleret License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2010 Sylvain Le Gall 2013 Hendrik Tews License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/libcaml2html-ocaml.install.in0000644000000000000000000000010112152164537014624 0ustar @OCamlStdlibDir@/caml2html/META @OCamlStdlibDir@/caml2html/*.cma debian/libcaml2html-ocaml-dev.install.in0000644000000000000000000000022012152164540015374 0ustar @OCamlStdlibDir@/caml2html/*.ml* @OCamlStdlibDir@/caml2html/*.cm[ix] OPT: @OCamlStdlibDir@/caml2html/*.cmxa OPT: @OCamlStdlibDir@/caml2html/*.a debian/changelog0000644000000000000000000000250612256131307011043 0ustar caml2html (1.4.3-1build1) trusty; urgency=medium * Rebuild for ocaml-4.01. -- Matthias Klose Mon, 23 Dec 2013 22:01:43 +0000 caml2html (1.4.3-1) unstable; urgency=low [ Sylvain Le Gall ] * Remove Sylvain Le Gall from uploaders [ Hendrik Tews ] * unapply debian-changes patch in master * update watch (thanks to Bart Martens) * bump debhelper compat and standards version * update homepage * add myself as uploader * update dependencies, change to architecture any and native compilation * update rules, *install files * update copyright * remove dubious debian-changes patch, save part for ocamldoc fix in new patch fix-ocamldoc-html-tags * improve man page -- Hendrik Tews Fri, 31 May 2013 16:22:48 +0200 caml2html (1.4.1-3) unstable; urgency=low * Team upload * Recompile with OCaml 3.12.1 (no changes) * Bump Standards-Version to 3.9.2 (no changes) -- Stéphane Glondu Thu, 03 Nov 2011 18:31:16 +0100 caml2html (1.4.1-2) unstable; urgency=low * Team upload * Rebuild with OCaml 3.12.0 (no changes) -- Stéphane Glondu Tue, 19 Apr 2011 08:41:52 +0200 caml2html (1.4.1-1) unstable; urgency=low * Initial release. (Closes: #605741) -- Sylvain Le Gall Fri, 03 Dec 2010 00:45:09 +0100 debian/libcaml2html-ocaml-dev.ocamldoc0000644000000000000000000000001212152164537015107 0ustar # Nothing debian/caml2html.doc-base0000644000000000000000000000027512152164537012462 0ustar Document: caml2html-howto Title: How to use caml2html Section: Programming/OCaml Format: HTML Index: /usr/share/doc/caml2html/caml2html.html Files: /usr/share/doc/caml2html/caml2html.html debian/compat0000644000000000000000000000000212152164540010364 0ustar 9 debian/caml2html.docs0000644000000000000000000000003112152164540011715 0ustar caml2html.html README.md debian/caml2html.install.in0000644000000000000000000000002212152164537013046 0ustar usr/bin/caml2html debian/patches/0000755000000000000000000000000012152164540010615 5ustar debian/patches/fix-ocamldoc-html-tags.patch0000644000000000000000000000273612152164540016111 0ustar Description: fix html tags inside ocamldoc comments Author: Hendrik Tews --- a/output.mli +++ b/output.mli @@ -69,24 +69,24 @@ Buffer.t -> Input.token list -> unit (** [ocaml buf l] formats the list of tokens [l] into some HTML code - which should be placed in a or
 region,
+  which should be placed in a \ or \ region,
   and adds the result the given buffer [buf].
   Option [nbsp] tells if the spaces must be converted into " " or not
-  (required in  regions but not in 
; default is false). *)
+  (required in \ regions but not in \; default is false). *)
 
 val ocamlcode :
   ?annot:Annot.tag list ->
   ?keyword_colors:(string, string option * string option * string) Hashtbl.t ->
   ?param:param -> ?tag_open:string -> ?tag_close:string -> string -> string
 (** [ocamlcode s1 s2] parses [s1] and formats the result as a HTML string
-  enclosed between  and  unless specified otherwise. *)
+  enclosed between \ and \ unless specified otherwise. *)
 
 val ocamlpre :
   ?annot:Annot.tag list ->
   ?keyword_colors:(string, string option * string option * string) Hashtbl.t ->
   ?param:param -> ?tag_open:string -> ?tag_close:string -> string -> string
 (** [ocamlcode s1 s2] parses [s1] and formats the result as a HTML string
-  enclosed between 
 and 
unless specified otherwise. *) + enclosed between \ and \ unless specified otherwise. *) (* $Id$ *) debian/patches/series0000644000000000000000000000003512152164540012030 0ustar fix-ocamldoc-html-tags.patch debian/control0000644000000000000000000000424712152164540010600 0ustar Source: caml2html Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Hendrik Tews Build-Depends: debhelper (>= 9), dh-ocaml (>= 0.9~), ocaml-nox (>= 3.11.1-3~), ocaml-best-compilers, camlp4, ocaml-findlib, libfindlib-ocaml-dev, libocamlnet-ocaml-dev, libmikmatch-ocaml-dev, camlmix Standards-Version: 3.9.4 Homepage: http://mjambon.com/caml2html.html Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/caml2html.git Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/caml2html.git Package: caml2html Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: HTML and LaTeX colored syntax from OCaml source files - executable Caml2html provides a command-line executable which converts a set of OCaml source files into a HTML or LaTeX document with colored syntax. A library is also provided for building web-page generators that would color OCaml code appropriately. . This package contains the caml2html executable. Package: libcaml2html-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${ocaml:Provides} Recommends: ocaml-findlib Description: HTML and LaTeX colored syntax from OCaml source files - dev files Caml2html provides a command-line executable which converts a set of OCaml source files into a HTML or LaTeX document with colored syntax. A library is also provided for building web-page generators that would color OCaml code appropriately. . This package contains the development files for programming with the library. Package: libcaml2html-ocaml Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${ocaml:Provides} Recommends: ocaml-findlib Description: HTML and LaTeX colored syntax from OCaml source files - plugins Caml2html provides a command-line executable which converts a set of OCaml source files into a HTML or LaTeX document with colored syntax. A library is also provided for building web-page generators that would color OCaml code appropriately. . This package contains the shared runtime library. debian/caml2html.mkd0000644000000000000000000000462512152164540011555 0ustar % this is the old pandoc source for the man page, it is not used any more % compile with pandoc -s -w man $^ -o $@ % CAML2HTML(1) Caml2html User Manual % Sylvain Le Gall % November 9, 2010 # NAME caml2html - colorizes a set of OCaml source files. # SYNOPSIS caml2html [options] file\* # DESCRIPTION Caml2html colorizes a set of OCaml source files (.ml, .mli, .mll, .mly, ...). Type annotations will be shown when the mouse pointer passes over an expression if the corresponding .annot file is available. To obtain a .annot file, compile your OCaml source files with `ocamlc -dtypes` or `ocamlopt -dtypes`. # OPTIONS -annotfilter {innermost|outermost} : choose whether innermost or outermost type annotations should be used (default: innermost) -charset : specify charset to use (default: iso-8859-1) -css : use CSS named style.css for styling -cssurl : use the given URL as CSS for styling -inhead : use default styling and place it in the head section of the document (default when applicable) -inline : use inline styling (HTML only, default fallback if -inhead is not applicable) -body : output only document's body, for inclusion into an existing document (see also -make-css and -make-latex-defs) -ln : add line number at the beginning of each line -hc : comments are treated as raw HTML or LaTeX code (no newlines inside of tags) -t : add a title to the HTML page -nf : do not add footnotes to the HTML page -ie7 : drop support for type annotations on Internet Explorer 6 and older -noannot : do not insert type annotations as read from .annot files (HTML output only) -notab : do not replace tabs by spaces -tab : replace tab by n spaces (default = 8) -d : generate files in directory dir, rather than in current directory -o : output file -v : print version number to stdout and exit -make-css : create CSS file with default color definitions and exit -ext : use the given external command CMD to handle comments that start with (\*NAME. NAME must be a lowercase identifier. -latex : output LaTeX code instead of HTML. -make-latex-defs : create a file containing the default LaTeX color definitions and matching highlighting commands, and exit. \usepackage{alltt,color} is not included. -help|\--help : Display this list of options debian/rules0000755000000000000000000000156012152164540010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v DESTDIR=$(CURDIR)/debian/tmp include /usr/share/ocaml/ocamlvars.mk OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR) export OCAMLFIND_DESTDIR OCAMLFIND_LDCONF=ignore export OCAMLFIND_LDCONF %: dh $@ --with ocaml .PHONY: override_dh_auto_build override_dh_auto_build: ifeq ($(OCAML_HAVE_OCAMLOPT),yes) $(MAKE) OCAMLOPT=ocamlopt.opt OCAMLC=ocamlc.opt opt bytelib else $(MAKE) byte bytelib mv caml2html.byte caml2html endif ./caml2html -help > caml2html-help camlmix -o caml2html.html caml2html.html.mlx .PHONY: override_dh_auto_install override_dh_auto_install: mkdir -p '$(OCAMLFIND_DESTDIR)' mkdir -p '$(DESTDIR)/usr/bin' make install 'BINDIR=$(DESTDIR)/usr/bin' .PHONY: override_dh_install override_dh_install: dh_install --fail-missing debian/source/0000755000000000000000000000000012152164537010474 5ustar debian/source/format0000644000000000000000000000001412152164537011702 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000003612152164537010612 0ustar [DEFAULT] pristine-tar = True debian/caml2html.manpages0000644000000000000000000000002312152164537012567 0ustar debian/caml2html.1 debian/watch0000644000000000000000000000013512152164540010216 0ustar version=3 http://mjambon.com/releases/caml2html/caml2html-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))