summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/mkmyocamlbuild_config.sh1
-rwxr-xr-xconfigure2
-rw-r--r--ocamlbuild/manual/Makefile7
-rw-r--r--ocamlbuild/manual/manual.hva1
-rw-r--r--ocamlbuild/manual/manual.tex32
5 files changed, 23 insertions, 20 deletions
diff --git a/build/mkmyocamlbuild_config.sh b/build/mkmyocamlbuild_config.sh
index ef86ab742..3c72a559d 100755
--- a/build/mkmyocamlbuild_config.sh
+++ b/build/mkmyocamlbuild_config.sh
@@ -4,7 +4,6 @@ cd `dirname $0`/..
sed \
-e 's/^#ml \(.*\)/\1/' \
- -e 's/\\"/"/g' \
-e 's/^\(#.*\)$/(* \1 *)/' \
-e 's/^\(.*\$([0-9]).*\)$/(* \1 *)/' \
-e 's/^\([^(=]*\)=\([^"]*\)$/let <:lower<\1>> = "\2";;/' \
diff --git a/configure b/configure
index dd68f6e79..69f72c6fe 100755
--- a/configure
+++ b/configure
@@ -1436,7 +1436,7 @@ echo "SHAREDCCCOMPOPTS=$sharedcccompopts" >> Makefile
echo "MKSHAREDLIBRPATH=$mksharedlibrpath" >> Makefile
cat >> Makefile <<EOF
SYSLIB=-l\$(1)
-#ml let syslib x = \"-l\"^x;;
+#ml let syslib x = "-l"^x;;
MKEXE=\$(BYTECC) -o \$(1) \$(2)
#ml let mkexe out files opts = Printf.sprintf "%s -o %s %s %s" bytecc out opts files;;
diff --git a/ocamlbuild/manual/Makefile b/ocamlbuild/manual/Makefile
index 4c2ef88b2..0a1037c85 100644
--- a/ocamlbuild/manual/Makefile
+++ b/ocamlbuild/manual/Makefile
@@ -1,11 +1,14 @@
# Makefile
-manual.pdf: manual.tex
+all: manual.pdf manual.html
%.pdf: %.tex
pdflatex $<
+%.html: %.tex manual.hva
+ hevea -fix -O manual.hva $<
+
.PHONY: clean
clean:
- rm -f *.pdf *.log *.aux *.ps *.dvi
+ rm -f *.pdf *.log *.aux *.ps *.dvi manual.h{tml,aux,toc}
diff --git a/ocamlbuild/manual/manual.hva b/ocamlbuild/manual/manual.hva
new file mode 100644
index 000000000..d175fdb95
--- /dev/null
+++ b/ocamlbuild/manual/manual.hva
@@ -0,0 +1 @@
+\newcommand{\mathscr}[1]{{\mathcal{#1}}} \ No newline at end of file
diff --git a/ocamlbuild/manual/manual.tex b/ocamlbuild/manual/manual.tex
index c255e9a22..c4e14ce54 100644
--- a/ocamlbuild/manual/manual.tex
+++ b/ocamlbuild/manual/manual.tex
@@ -6,20 +6,20 @@
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[a4paper,lmargin=1cm,rmargin=1cm,tmargin=1cm,bmargin=1cm]{geometry}
+%%%
+\newcommand{\ocb}{\texttt{ocamlbuild}~}
+\newcommand{\tags}{\texttt{\_tags}~}
%***)
%(*** title
\begin{document}
-\newcommand{\ocb}{\texttt{ocamlbuild}~}
-\newcommand{\tags}{\texttt{\_tags}~}
\title{\ocb, a tool for \\ automatic compilation \\ of OCaml projects}
\author{Nicolas \textsc{Pouillard}, Berke \textsc{Durak}}
\date{January 2007}
\maketitle
%***)
%(*** abstract
-\abstract{
-
-}
+\begin{abstract}
+\end{abstract}
%***)
%(*** Motivations
\section{Motivations}
@@ -424,7 +424,7 @@ If you do not have subdirectories, you can put \texttt{*.ml} instead of
\subsection{Glob patterns and expressions}
\label{subsec:glob}
Glob patterns have a syntax similar to those used by UNIX shells to select path
-names (like \texttt{foo\_\*\.ba?}). They are used in \ocb to define the files
+names (like \texttt{foo\_*.ba?}). They are used in \ocb to define the files
and directories to which tags apply. Glob expressions are glob patterns
enclosed in brackets \texttt{<} and \texttt{>} combined using the standard
boolean operators \texttt{and}, \texttt{or}, \texttt{not}. This allows one to
@@ -446,7 +446,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
\hline
\hline
%%
- {$u$ \vskip 0.5em A string of pathname characters} &
+ {$u$ \vspace*{0.5em} A string of pathname characters} &
\texttt{foo.ml} &
\texttt{foo.ml} &
\texttt{fo.ml}, \texttt{bar/foo.ml} &
@@ -454,7 +454,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($\{ u \}$, where $u \in P^*$) \\
\hline
%%
- {\texttt{*} \vskip 0.5em The wildcard star}&
+ {\texttt{*} \vspace*{0.5em} The wildcard star}&
\texttt{*}&
$\varepsilon$, \texttt{foo}, \texttt{bar} &
\texttt{foo/bar}, \texttt{/bar} &
@@ -462,14 +462,14 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($P^*$) \\
\hline
%%
- {\texttt{?} \vskip 0.5em The joker}&
+ {\texttt{?} \vspace*{0.5em} The joker}&
\texttt{?}&
\texttt{a}, \texttt{b}, \texttt{z} &
\texttt{/}, \texttt{bar} &
Any one-letter string, excluding the slash \\
\hline
%%
- {\texttt{**/} \vskip 0.5em The prefix interdirectory star}&
+ {\texttt{**/} \vspace*{0.5em} The prefix interdirectory star}&
\texttt{**/foo.ml}&
\texttt{foo.ml}, \texttt{bar/foo.ml}, \texttt{bar/baz/foo.ml} &
\texttt{foo/bar}, \texttt{/bar} &
@@ -477,7 +477,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($\varepsilon \cup P^*\mathtt{/}$) \\
\hline
%%
- {\texttt{/**} \vskip 0.5em The suffix interdirectory star}&
+ {\texttt{/**} \vspace*{0.5em} The suffix interdirectory star}&
\texttt{foo/**}&
\texttt{foo}, \texttt{foo/bar} &
\texttt{bar/foo} &
@@ -485,7 +485,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($\varepsilon \cup \mathtt{/}P^*$) \\
\hline
%%
- {\texttt{/**/} \vskip 0.5em The infix interdirectory star}&
+ {\texttt{/**/} \vspace*{0.5em} The infix interdirectory star}&
\texttt{bar/**/foo.ml}&
\texttt{bar/foo.ml}, \texttt{bar/baz/foo.ml} &
\texttt{foo.ml} &
@@ -495,7 +495,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
%%
{$\mathtt{[} r_1 r_2 \cdots r_k \mathtt{]}$
where $r_i$ is either $c$ or $c_1-c_2$ $(1 \leq i \leq k)$
- \vskip 0.5em The positive character class}&
+ \vspace*{0.5em} The positive character class}&
\texttt{[a-fA-F0-9\_.]}&
\texttt{3}, \texttt{F}, \texttt{.} &
\texttt{z}, \texttt{bar} &
@@ -506,7 +506,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
%%
{\texttt{[\char`\^}$r_1 r_2 \cdots r_k \mathtt{]}$
where $r_i$ is either $c$ or $c_1-c_2$ $(1 \leq i \leq k)$
- \vskip 0.5em The negative character class}&
+ \vspace*{0.5em} The negative character class}&
\texttt{[\char`\^a-fA-F0-9\_.]}&
\texttt{z}, \texttt{bar} &
\texttt{3}, \texttt{F}, \texttt{.} &
@@ -515,7 +515,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($\Sigma^* \setminus \left(\mathscr L(r_1) \cup \cdots \cup \mathscr L(r_n)\right)$) \\
\hline
%%
- {$p_1 p_2$ \vskip 0.5em A concatenation of patterns}&
+ {$p_1 p_2$ \vspace*{0.5em} A concatenation of patterns}&
\texttt{foo*}&
\texttt{foo}, \texttt{foob}, \texttt{foobar} &
\texttt{fo}, \texttt{bar} &
@@ -524,7 +524,7 @@ $\texttt{-}$ and $\texttt{.}$. This is called the pathname alphabet $P$.
($\{ uv \mid u \in \mathscr L(p_1), v \in \mathscr L(p_2) \}$) \\
\hline
%%
- {$\mathtt{\{} p_1 \mathtt{,} p_2 \mathtt{,} \cdots \mathtt{,} p_k \mathtt{\}}$ \vskip 0.5em A union of patterns}&
+ {$\mathtt{\{} p_1 \mathtt{,} p_2 \mathtt{,} \cdots \mathtt{,} p_k \mathtt{\}}$ \vspace*{0.5em} A union of patterns}&
\texttt{toto.\{ml,mli\}}&
\texttt{toto.ml}, \texttt{toto.mli} &
\texttt{toto.} &