[Pkg-ocaml-maint-commits] [ocamlify] 04/04: renamed deprecated ocaml functions
Ralf Treinen
treinen at moszumanska.debian.org
Mon Sep 25 18:26:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
treinen pushed a commit to branch master
in repository ocamlify.
commit a55c02eeb24f6077deeeb3ff0ea3300332514e8a
Author: Ralf Treinen <treinen at free.fr>
Date: Mon Sep 25 20:12:17 2017 +0200
renamed deprecated ocaml functions
---
debian/changelog | 3 ++-
debian/patches/deprecated_ocaml_functions | 37 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index cc8b91b..0053692 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ ocamlify (0.0.2-5) unstable; urgency=medium
* d/copyright: machine-readable format 1.0
* Standards-version 4.1.0(no change)
* add myself to Uploaders
+ * patch deprecated_ocaml_functions: replace some ocaml functions
- -- Ralf Treinen <treinen at debian.org> Mon, 25 Sep 2017 20:07:05 +0200
+ -- Ralf Treinen <treinen at debian.org> Mon, 25 Sep 2017 20:18:56 +0200
ocamlify (0.0.2-4) unstable; urgency=medium
diff --git a/debian/patches/deprecated_ocaml_functions b/debian/patches/deprecated_ocaml_functions
new file mode 100644
index 0000000..0c5ea92
--- /dev/null
+++ b/debian/patches/deprecated_ocaml_functions
@@ -0,0 +1,37 @@
+Author: Ralf Treinen <treinen at debian.org>
+Description: replace some deprecated ocaml functions
+
+Index: ocamlify/setup.ml
+===================================================================
+--- ocamlify.orig/setup.ml 2017-09-25 20:16:06.180877820 +0200
++++ ocamlify/setup.ml 2017-09-25 20:16:06.176877809 +0200
+@@ -1277,12 +1277,12 @@
+ let capitalize_file f =
+ let dir = dirname f in
+ let base = basename f in
+- concat dir (String.capitalize base)
++ concat dir (String.capitalize_ascii base)
+
+ let uncapitalize_file f =
+ let dir = dirname f in
+ let base = basename f in
+- concat dir (String.uncapitalize base)
++ concat dir (String.uncapitalize_ascii base)
+
+ end
+
+@@ -5085,10 +5085,10 @@
+ (Filename.concat path)
+ [modul^".mli";
+ modul^".ml";
+- String.uncapitalize modul^".mli";
+- String.capitalize modul^".mli";
+- String.uncapitalize modul^".ml";
+- String.capitalize modul^".ml"])
++ String.uncapitalize_ascii modul^".mli";
++ String.capitalize_ascii modul^".mli";
++ String.uncapitalize_ascii modul^".ml";
++ String.capitalize_ascii modul^".ml"])
+ :: acc
+ with Not_found ->
+ begin
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..39e7761
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+deprecated_ocaml_functions
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/ocamlify.git
More information about the Pkg-ocaml-maint-commits
mailing list