[Pkg-octave-commit] [SCM] Debian packaging for octave-strings branch, master, updated. 75006424cff419336f6301772a6dcf7f0d185441
Rafael Laboissiere
rafael at laboissiere.net
Thu Mar 15 21:37:44 UTC 2012
The following commit has been merged in the master branch:
commit 2113feedd1ed25a2127654f3614802e2d35d8e16
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Wed Mar 14 12:16:30 2012 +0100
Add patch for defining the swap function inside cstrcmp.m
Also, add .pc/ to the list of exclusions for Git.
diff --git a/.gitignore b/.gitignore
index 0e4c60f..4484304 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.pc/
global-list
local-list
debian/files
diff --git a/debian/patches/add-swap-function.patch b/debian/patches/add-swap-function.patch
new file mode 100644
index 0000000..e702be0
--- /dev/null
+++ b/debian/patches/add-swap-function.patch
@@ -0,0 +1,18 @@
+Description: Define the swap function inside the cstrcmp function
+ The swap function used to be in the Control package, but has been dropped
+ in version 2.3.50 of the package. This patch adds the definition of this
+ function to the cstrcmp.m file as a local function.
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Last-Update: 2012-03-14
+
+--- octave-strings-1.0.7.orig/inst/cstrcmp.m
++++ octave-strings-1.0.7/inst/cstrcmp.m
+@@ -85,3 +85,8 @@ function v=do_cstrcmp(s1,s2)
+ v=sign(L1-L2);
+ return
+ end
++
++function [u, v] = swap (x, y)
++ u = y
++ v = x;
++endfunction
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..916c800
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add-swap-function.patch
--
Debian packaging for octave-strings
More information about the Pkg-octave-commit
mailing list