[caffe-contrib] 192/362: d/script/*: add useful script
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Tue May 3 09:24:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository caffe-contrib.
commit bed0280264c1a2d0dab0293ecd51734c13ea818a
Author: Zhou Mo <cdluminate at gmail.com>
Date: Thu Sep 3 03:04:15 2015 +0000
d/script/*: add useful script
---
debian/script/change_header_path.patch | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/debian/script/change_header_path.patch b/debian/script/change_header_path.patch
new file mode 100644
index 0000000..3ffec7a
--- /dev/null
+++ b/debian/script/change_header_path.patch
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# lumin zhou
+# https://github.com/BVLC/caffe/issues/2347
+
+# manipulate header path, before building caffe on debian jessie
+# usage:
+# 1. cd root of caffe
+# 2. bash <this_script>
+# 3. build
+
+
+# transformations :
+# #include "hdf5/serial/hdf5.h" -> #include "hdf5/serial/hdf5.h"
+# #include "hdf5_hl.h" -> #include "hdf5/serial/hdf5_hl.h"
+
+find . -type f -exec sed -i -e 's^"hdf5.h"^"hdf5/serial/hdf5.h"^g' -e 's^"hdf5_hl.h"^"hdf5/serial/hdf5_hl.h"^g' '{}' \;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe-contrib.git
More information about the debian-science-commits
mailing list