debian/0000755000000000000000000000000012247301546007172 5ustar debian/control0000644000000000000000000000145612174145577010614 0ustar Source: cppo Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Hendrik Tews Build-Depends: ocaml-nox (>= 4), ocaml-findlib (>= 1.4), dh-ocaml (>= 0.9~), debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://mjambon.com/cppo.html Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/cppo.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/cppo.git Package: cppo Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: cpp for OCaml Cppo is an OCaml-friendly implementation of cpp, the C preprocessor. It can replace camlp4 for preprocessing OCaml files, using cpp style and syntax. It allows defining simple macros and file inclusion. debian/cppo.manpages0000644000000000000000000000001612174145560011646 0ustar debian/cppo.1 debian/cppo.mkd0000644000000000000000000000217712174145560010640 0ustar % this is the old source for the man page % process with pandoc -s -w man $^ -o $@ % CPPO(1) cppo User Manual % Sylvain Le Gall % December 4, 2010 # NAME cppo - cpp for OCaml. # SYNOPSIS cppo [options] file\* # DESCRIPTION Cppo is an OCaml-friendly implementation of cpp, the C preprocessor. It can replace camlp4 for preprocessing OCaml files, using cpp style and syntax. It allows defining simple macros and file inclusion. # OPTIONS -D *DEF* : Equivalent of interpreting '#define DEF' before processing the input -U *IDENT* : Equivalent of interpreting '#undef IDENT' before processing the input -I `DIR` : Add directory DIR to the search path for included files -o `FILE` : Output file -q : Identify and preserve camlp4 quotations -s : Output line directives pointing to the exact source location of each token, including those coming from the body of macro definitions. This behavior is off by default. -n : Do not output any line directive other than those found in the input (overrides -s). -version : Print the version of the program and exit. -help|\--help : Display this list of options debian/source/0000755000000000000000000000000012174145560010473 5ustar debian/source/format0000644000000000000000000000001412174145560011701 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000474112174145560011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Cppo Upstream-Contact: Martin Jambon Source: http://mjambon.com/cppo.html Files: * Copyright: Copyright (c) 2009-2011 Martin Jambon License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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/watch0000644000000000000000000000012312174145560010220 0ustar version=3 http://mjambon.com/releases/cppo/cppo-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz)) debian/compat0000644000000000000000000000000212174145560010371 0ustar 9 debian/cppo.10000644000000000000000000001032312174145560010215 0ustar .\" groff -man -Tascii cppo.1 .\" ========================================================================== .\" ============= Synopsis =================================================== .\" ========================================================================== .TH CPPO 1 "June 2013" CPPO "User Manuals" .SH NAME cppo \- lightweight cpp-like preprocessor for OCaml .SH SYNOPSIS .B cppo \fR[\fIOptions...\fR] \fIfiles\fR... .\" ========================================================================== .\" ============= Description ================================================ .\" ========================================================================== .SH DESCRIPTION .B cppo is the equivalent of the C preprocessor for OCaml. It permits the definition and expansion of simple (in comparison with .B camlp4\fR) macros and file inclusion. .B cppo supports functional macros, conditionals, boolean and arithmetic expressions, stringification, and calling different, external preprocessors. For a precise description of the features, see .I /usr/share/doc/cppo/README.gz\fR. .\" .\" ========================================================================== .\" ================ Options ================================================= .\" ========================================================================== .\" .SH OPTIONS .\" ===================== -D DEF ============================================= .TP .B "-D IDENT" define .I IDENT .\" ===================== -U IDENT =========================================== .TP .B "-U IDENT" undefine .I IDENT .\" ===================== -I DIR ============================================= .TP .B "-I DIR" add .I DIR to the search path for included files .\" ===================== -o FILE ============================================ .TP .B "-o FILE" write output to .I FILE .\" ===================== -q ================================================ .TP .B "-q" Identify and preserve camlp4 quotations .\" ===================== -s ================================================ .TP .B "-s" Output line directives pointing to the exact source location of each token, including those coming from the body of macro definitions. This behavior is off by default. .\" ===================== -n ================================================ .TP .B "-n" Do not output any line directive other than those found in the input (overrides .B -s\fR). .\" ===================== -version ========================================== .TP .B "-version " print version and exit .\" ===================== -x NAME:CMD_TEMPLATE =============================== .TP .B "-x NAME:CMD_TEMPLATE" .RS Define a custom preprocessor target section starting with: .P .RS #ext "NAME" .RE .P and ending with: .P .RS #endext .RE .P .I NAME must be a lowercase identifier of the form [a-z][A-Za-z0-9_]* .P .I CMD_TEMPLATE is a command template supporting the following special sequences: .RS .HP %F file name (unescaped; beware of potential scripting attacks) .HP %B number of the first line .HP %E number of the last line .HP %% a single percent sign .RE .P The filename, the first line number and the last line number are available to the external preprocessor via the environment variables .I CPPO_FILE\fR, \fICPPO_FIRST_LINE\fR, \fICPPO_LAST_LINE\fR. .P The command is expected to read from stdin and to write to stdout. .RE .\" ===================== -help ================================================= .TP .B "-help | --help" Display options and exit .\" .\" ========================================================================== .\" ================ SEE ALSO ================================================ .\" ========================================================================== .\" .SH SEE ALSO .TP the \fBcppo\fR web page, \fIhttp://mjambon.com/cppo.html\fR .TP the text manual in \fI/usr/share/doc/cppo/README.gz .\" .\" ========================================================================== .\" ================ 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/cppo.docs0000644000000000000000000000000712174145560011003 0ustar README debian/rules0000755000000000000000000000070012174145560010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v DESTDIR=$(CURDIR)/debian/cppo include /usr/share/ocaml/ocamlvars.mk %: dh $@ --with ocaml .PHONY: override_dh_auto_build override_dh_auto_build: ifeq ($(OCAML_HAVE_OCAMLOPT),yes) $(MAKE) opt else $(MAKE) all endif .PHONY: override_dh_auto_install override_dh_auto_install: make install 'BINDIR=$(DESTDIR)/usr/bin' debian/cppo.dirs0000644000000000000000000000001112174145560011007 0ustar /usr/bin debian/gbp.conf0000644000000000000000000000003612174145560010611 0ustar [DEFAULT] pristine-tar = True debian/clean0000644000000000000000000000002112174145560010171 0ustar testdata/ext.out debian/changelog0000644000000000000000000000236212247301546011047 0ustar cppo (0.9.3-3) unstable; urgency=low * Team upload * Upload to unstable -- Stéphane Glondu Tue, 03 Dec 2013 08:08:21 +0100 cppo (0.9.3-2) experimental; urgency=low * Team upload * Compile with OCaml >= 4 -- Stéphane Glondu Thu, 25 Jul 2013 08:54:16 +0200 cppo (0.9.3-1) unstable; urgency=low [ Sylvain Le Gall] * Remove Sylvain Le Gall from uploaders [ Hendrik Tews ] * update watch file (thanks to Bart Martens) * bump standards version and debhelper compat level * update homepage * update Vcs fields * change to architecture any (Closes: 664200) * update dependencies * fix copyright * add myself as uploader * update man page -- Hendrik Tews Sun, 02 Jun 2013 23:12:27 +0200 cppo (0.9.2-1) unstable; urgency=low * Team upload * New upstream release -- Stéphane Glondu Wed, 02 Nov 2011 07:09:56 +0100 cppo (0.9.0-2) unstable; urgency=low * Team upload * Rebuild with OCaml 3.12.0 (no changes) -- Stéphane Glondu Mon, 18 Apr 2011 09:00:19 +0200 cppo (0.9.0-1) unstable; urgency=low * Initial release. (Closes: #605677) -- Sylvain Le Gall Sat, 04 Dec 2010 23:03:03 +0100 debian/cppo.examples0000644000000000000000000000001312174145560011666 0ustar examples/*