[Pkg-ocaml-maint-commits] [SCM] ocamlify packaging branch, master, updated. upstream/0.0.1-5-g1b3ca8b

Sylvain Le Gall gildor at debian.org
Wed Nov 17 17:30:20 UTC 2010


The following commit has been merged in the master branch:
commit 1b3ca8b3fd11a42fa6ac0748a349c3429d652e1a
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Tue Nov 9 12:57:56 2010 +0000

    Build without lintian warnings

diff --git a/debian/changelog b/debian/changelog
index ec83942..9ce6244 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ocamlify (0.0.1) UNRELEASED; urgency=low
+ocamlify (0.0.1-1) unstable; urgency=low
 
-  * Initial release. (Closes: #XXXXXX)
+  * Initial release. (Closes: #602913)
 
- -- Sylvain Le Gall <gildor at debian.org>  Tue, 09 Nov 2010 10:00:49 +0000
+ -- Sylvain Le Gall <gildor at debian.org>  Tue, 09 Nov 2010 12:55:37 +0000
diff --git a/debian/copyright b/debian/copyright
index 1d44c38..210ac7f 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -6,6 +6,8 @@ Files: *
 Copyright: (C) 2009-2010, OCamlCore SARL
 License: LGPL-2.1 with OCaml linking exception
 
+ See '/usr/share/common-licenses/LGPL-2.1'.
+
  As a special exception to the GNU Library General Public License, you may
  link, statically or dynamically, a "work that uses the Library" with a
  publicly distributed version of the Library to produce an executable file
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..2aa2c12
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+AUTHORS.txt
+README.txt
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..a261f77
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/ocamlify.1
diff --git a/debian/ocamlify.1 b/debian/ocamlify.1
new file mode 100644
index 0000000..c40bedd
--- /dev/null
+++ b/debian/ocamlify.1
@@ -0,0 +1,68 @@
+.TH OCAMLIFY 1 "November 9, 2010" "Ocamlify User Manual"
+.SH NAME
+.PP
+ocamlify - create an OCaml file including other files.
+.SH SYNOPSIS
+.PP
+ocamlify [options] option-file
+.SH DESCRIPTION
+.PP
+This program allows to copy files inside OCaml code.
+It uses a first file that describes the other files that must be
+included and the type of OCaml variable it should create.
+It can also describe dependencies to other files, in order to
+generate \&.depends files for make.
+.PP
+For example, we can create a file \f[B]test.mlify\f[] with this
+content:
+.PP
+\f[CR]
+      VarString\ oasissys_ml\ "OASISSys.ml"
+      VarStringList\ readme_template_mkd\ "MANUAL-template.mkd"
+\f[]
+.PP
+We then translate it using the program:
+.PP
+\f[CR]
+      $>\ ocamlify\ --output\ test.ml\ test.mlify
+\f[]
+.PP
+And we get a file \f[B]test.ml\f[] containing two OCaml variables:
+\f[I]oasissys_ml\f[], which is a string, and
+\f[I]readme_template_mkd\f[] which is a string list (one string per
+line).
+.SH OPTIONS
+.TP
+.B --var-string-list \f[I]varname\f[] \f[B]file\f[]
+Include file as a list of string, each string representing a line
+(without trailing EOL character)
+.RS
+.RE
+.TP
+.B --var-string \f[I]varname\f[] \f[B]file\f[]
+Include file as a string.
+.RS
+.RE
+.TP
+.B --output \f[B]file\f[]
+Output file, default to standard output
+.RS
+.RE
+.TP
+.B --depends
+Output file dependencies
+.RS
+.RE
+.TP
+.B --target file
+Define target of dependencies
+.RS
+.RE
+.TP
+.B -help|--help
+Display list of options
+.RS
+.RE
+.SH AUTHORS
+Sylvain Le Gall.
+
diff --git a/debian/ocamlify.mkd b/debian/ocamlify.mkd
new file mode 100644
index 0000000..692d4a1
--- /dev/null
+++ b/debian/ocamlify.mkd
@@ -0,0 +1,52 @@
+% OCAMLIFY(1) Ocamlify User Manual
+% Sylvain Le Gall 
+% November 9, 2010
+
+# NAME
+
+ocamlify - create an OCaml file including other files.
+
+# SYNOPSIS
+
+ocamlify [options] option-file
+
+# DESCRIPTION
+
+This program allows to copy files inside OCaml code. It uses a first file that
+describes the other files that must be included and the type of OCaml variable
+it should create. It can also describe dependencies to other files, in order to
+generate .depends files for make.
+
+For example, we can create a file `test.mlify` with this content:
+
+    VarString oasissys_ml "OASISSys.ml"
+    VarStringList readme_template_mkd "MANUAL-template.mkd"
+
+We then translate it using the program:
+
+    $> ocamlify --output test.ml test.mlify
+
+And we get a file `test.ml` containing two OCaml variables: *oasissys_ml*,
+which is a string, and *readme_template_mkd* which is a string list (one string
+per line).
+
+# OPTIONS
+
+\--var-string-list *varname* `file`
+:   Include file as a list of string, each string representing a line (without
+    trailing EOL character)
+
+\--var-string *varname* `file`
+:   Include file as a string.
+
+\--output `file`
+:   Output file, default to standard output
+
+\--depends
+:   Output file dependencies
+
+\--target file
+:   Define target of dependencies
+
+-help|\--help
+:   Display list of options
diff --git a/debian/rules b/debian/rules
index 30c447e..294df38 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DESTDIR=$(CURDIR)/debian/tmp
+DESTDIR=$(CURDIR)/debian/ocamlify
 
 include /usr/share/ocaml/ocamlvars.mk
 
@@ -21,9 +21,12 @@ override_dh_auto_build:
 
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
+	mkdir -p '$(DESTDIR)/usr/bin'
 	ocaml setup.ml -install 
 
 .PHONY: override_dh_auto_clean
 override_dh_auto_clean:
 	ocaml setup.ml -distclean
 
+debian/ocamlify.1: debian/ocamlify.mkd
+	pandoc -s -w man $^ -o $@

-- 
ocamlify packaging



More information about the Pkg-ocaml-maint-commits mailing list