[Pkg-octave-commit] [octave] 10/15: missing-example.diff: new patch, adds back a file omitted in upstream tarball.
Sébastien Villemot
sebastien at moszumanska.debian.org
Wed Dec 11 13:32:53 UTC 2013
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository octave.
commit a335bd91c683140c6f99a2bd61e71dca57d6bccb
Author: Sébastien Villemot <sebastien at debian.org>
Date: Wed Dec 11 14:24:23 2013 +0100
missing-example.diff: new patch, adds back a file omitted in upstream tarball.
---
debian/patches/missing-example.diff | 43 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 44 insertions(+)
diff --git a/debian/patches/missing-example.diff b/debian/patches/missing-example.diff
new file mode 100644
index 0000000..298f066
--- /dev/null
+++ b/debian/patches/missing-example.diff
@@ -0,0 +1,43 @@
+Description: Add a file omitted in upstream tarball
+ A fix has been applied upstream so that it does not occur with next release
+ candidate: http://hg.savannah.gnu.org/hgweb/octave/rev/4772cf56e366
+Author: Sébastien Villemot <sebastien at debian.org>
+Last-Update: 2013-12-11
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- /dev/null
++++ b/examples/standalonebuiltin.cc
+@@ -0,0 +1,33 @@
++#include <iostream>
++#include <octave/oct.h>
++#include <octave/builtin-defun-decls.h>
++
++int
++main (void)
++{
++
++ int n = 2;
++ Matrix a_matrix = Matrix (n, n);
++
++ for (octave_idx_type i = 0; i < n; i++)
++ for (octave_idx_type j = 0; j < n; j++)
++ a_matrix(i,j) = (i + 1) * 10 + (j + 1);
++
++ std::cout << "This is a matrix:"
++ << std::endl
++ << a_matrix
++ << std::endl;
++
++ octave_value_list in;
++ in(0) = a_matrix;
++
++ octave_value_list out = Fnorm (in, 1);
++ double norm_of_the_matrix = out(0).double_value ();
++
++ std::cout << "This is the norm of the matrix:"
++ << std::endl
++ << norm_of_the_matrix
++ << std::endl;
++
++ return 0;
++}
diff --git a/debian/patches/series b/debian/patches/series
index eb5b312..a0fbd02 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ no_pdf_in_print.diff
add_info_dir_categories
drop_version_from_mkoctfile_function_call
mkoctfile-mpi.diff
+missing-example.diff
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave.git
More information about the Pkg-octave-commit
mailing list