[libfann] 91/133: Simplify sed script by using extended regular expressions
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:07:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to branch master
in repository libfann.
commit 8d26849eff2a709113ffc1f9d44ba507f3813b4c
Author: Christian Kastner <debian at kvr.at>
Date: Fri Jun 10 02:11:14 2011 +0200
Simplify sed script by using extended regular expressions
---
debian/example-paths.sed | 14 +++++++-------
debian/rules | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/debian/example-paths.sed b/debian/example-paths.sed
index 795ec67..10a1af1 100644
--- a/debian/example-paths.sed
+++ b/debian/example-paths.sed
@@ -1,7 +1,7 @@
-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\//("/
+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 b21b5e5..555d57c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -80,7 +80,7 @@ override_dh_installexamples:
# 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 -f debian/example-paths.sed \
+ sed -i -r -f debian/example-paths.sed \
debian/libfann-doc/usr/share/doc/libfann-doc/examples/*.c \
debian/libfann-doc/usr/share/doc/libfann-doc/examples/python/*.py
--
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