[DRE-commits] [ruby-gherkin] 09/16: fix paths in tasks/ragel_task.rb
Cédric Boutillier
boutil at alioth.debian.org
Tue Aug 13 13:16:49 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-gherkin.
commit 6e841f7376c9593b5e4d49537ce9b95ac1a2c82b
Author: Cédric Boutillier <boutil at debian.org>
Date: Mon Aug 12 18:52:02 2013 +0200
fix paths in tasks/ragel_task.rb
---
debian/patches/fix_path_ragel_task.patch | 19 +++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 20 insertions(+)
diff --git a/debian/patches/fix_path_ragel_task.patch b/debian/patches/fix_path_ragel_task.patch
new file mode 100644
index 0000000..9e04785
--- /dev/null
+++ b/debian/patches/fix_path_ragel_task.patch
@@ -0,0 +1,19 @@
+Description: fix path to be replaced by sed in ragel_task.rb
+ Since ragel is called from debian/ instead of tasks/, paths to be replaced
+ should be adapted.
+Author: Cédric Boutillier <boutil at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2013-08-12
+
+--- a/tasks/ragel_task.rb
++++ b/tasks/ragel_task.rb
+@@ -29,7 +29,7 @@
+ mkdir_p(File.dirname(target)) unless File.directory?(File.dirname(target))
+ sh "ragel #{flags} #{lang_ragel} -o #{target}"
+ # Remove absolute paths from ragel-generated sources
+- sh %{#{sed} "s|#{Dir.pwd}/tasks/../||" #{target}}
++ sh %{#{sed} "s|#{File.dirname __FILE__}/../||" #{target}}
+ if(@lang == 'js')
+ # Ragel chokes if we put the escaped triple quotes in .rl, so we'll do the replace with sed after the fact. Lots of backslashes!!
+ sh %{#{sed} 's/ESCAPED_TRIPLE_QUOTE/\\\\\\\\\\\\"\\\\\\\\\\\\"\\\\\\\\\\\\"/' #{target}}
diff --git a/debian/patches/series b/debian/patches/series
index 736279d..5e4523f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
remove_bundler_rubygems_stuff.patch
signed_char.patch
+fix_path_ragel_task.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gherkin.git
More information about the Pkg-ruby-extras-commits
mailing list