[libfann] 22/34: Merge path substitution stuff into debian/rules

Christian Kastner chrisk-guest at moszumanska.debian.org
Thu Oct 1 18:06:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository libfann.

commit bee6f3e18fc81c1722193537742535c8a7675d70
Author: Christian Kastner <ckk at kvr.at>
Date:   Thu Oct 1 11:36:26 2015 +0200

    Merge path substitution stuff into debian/rules
---
 debian/example-paths.sed | 7 -------
 debian/rules             | 5 ++++-
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/debian/example-paths.sed b/debian/example-paths.sed
deleted file mode 100644
index 10a1af1..0000000
--- a/debian/example-paths.sed
+++ /dev/null
@@ -1,7 +0,0 @@
-s|(\.\./)+benchmarks|/usr/share/doc/libfann-doc/examples|
-s|\("\.\.","\.\.","benchmarks"|("/","usr","share","doc","libfann-doc", "examples"|
-s|\.\./\.\./examples|/usr/share/doc/libfann-doc/examples|
-s|"xor.data"|"/usr/share/doc/libfann-doc/examples/xor.data"|
-s|"scaling.data"|"/usr/share/doc/libfann-doc/examples/scaling.data"|
-s|\("nets",|(|
-s|\("nets/|("|
diff --git a/debian/rules b/debian/rules
index 208ec7e..1119f8a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -74,7 +74,10 @@ override_dh_installexamples-indep:
 	# Modify dataset paths in examples to point to libfann-doc datasets. This
 	# was not implemented as a patch to upstream to preserve the ability to
 	# run upstream's own tests within the source dir.
-	sed -i -r -f debian/example-paths.sed \
+	sed -i \
+		-e 's|\.\./datasets|/usr/share/doc/libfann-doc/examples/datasets|' \
+		-e 's|"xor.data"|"/usr/share/doc/libfann-doc/examples/xor.data"|' \
+		-e 's|"scaling.data"|"/usr/share/doc/libfann-doc/examples/scaling.data"|' \
 		debian/libfann-doc/usr/share/doc/libfann-doc/examples/*.c
 	
 	# Add Makefile & compile/run instructions for the examples

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list