debian/ 0000755 0000000 0000000 00000000000 12256131307 007166 5 ustar debian/caml2html.1 0000644 0000000 0000000 00000015620 12152164540 011137 0 ustar .\" 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 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/series 0000644 0000000 0000000 00000000035 12152164540 012030 0 ustar fix-ocamldoc-html-tags.patch
debian/control 0000644 0000000 0000000 00000004247 12152164540 010600 0 ustar 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.mkd 0000644 0000000 0000000 00000004625 12152164540 011555 0 ustar % 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/rules 0000755 0000000 0000000 00000001560 12152164540 010250 0 ustar #!/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/ 0000755 0000000 0000000 00000000000 12152164537 010474 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12152164537 011702 0 ustar 3.0 (quilt)
debian/gbp.conf 0000644 0000000 0000000 00000000036 12152164537 010612 0 ustar [DEFAULT]
pristine-tar = True
debian/caml2html.manpages 0000644 0000000 0000000 00000000023 12152164537 012567 0 ustar debian/caml2html.1
debian/watch 0000644 0000000 0000000 00000000135 12152164540 010216 0 ustar version=3
http://mjambon.com/releases/caml2html/caml2html-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))