[caffe] 05/08: rules: remove the dirty hacks in the doc build.

Zhou Mo cdluminate-guest at moszumanska.debian.org
Mon Dec 18 12:16:45 UTC 2017


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

cdluminate-guest pushed a commit to branch master
in repository caffe.

commit 3bf7099cd3e9847ce22b3304de855fe0ce3a0250
Author: Mo Zhou <cdluminate at gmail.com>
Date:   Mon Dec 18 11:38:10 2017 +0000

    rules: remove the dirty hacks in the doc build.
---
 debian/rules | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/debian/rules b/debian/rules
index db2910d..6f8128d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,16 +73,12 @@ override_dh_auto_clean:
 
 override_dh_auto_build-indep:
 	doxygen .Doxyfile # we don't use BUILD_DOC provided by upstream cmake
-	sed -i -e 's/]{hyperref}/,draft]{hyperref}/g' doxygen/latex/refman.tex # patch the tex source to avoid a pdflatex compilation error
 	$(MAKE) -C doxygen/latex/
-	sed -i -e 's/cdn.mathjax.org/127.0.0.1/g' docs/_layouts/default.html # lintian privacy
-	sed -i -e 's/code.jquery.com/127.0.0.1/g' examples/web_demo/templates/index.html # lintian privacy
-	sed -i -e 's/netdna.bootstrapcdn.com/127.0.0.1/g' examples/web_demo/templates/index.html # lintian privacy
-	find doxygen/html -name 'jquery.js' -delete # lintian embedded-javascript
-	find docs -size 0 -delete # lintian zero-byte-file
 	find docs -name '.gitignore' -delete # lintian vcs-control-file
-	gzip -d examples/finetune_flickr_style/flickr_style.csv.gz # lintian gzip timestamp
-	gzip -n ./examples/finetune_flickr_style/flickr_style.csv # ditto
+	find docs -name '*.html' -exec sed -i -e "s at http://cdn.mathjax.org/mathjax/latest/MathJax.js at file:///usr/share/javascript/mathjax/MathJax.js at g" '{}' \; # lintian privacy-breach-uses-embedded-file
+	find examples -name '*.html' -exec sed -i -e "s@//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js at file:///usr/share/javascript/bootstrap/js/bootstrap.min.js at g" '{}' \; # lintian privacy-breach-uses-embedded-file
+	find examples -name '*.html' -exec sed -i -e "s@//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css at file:///usr/share/javascript/bootstrap/css/bootstrap.min.css at g" '{}' \; # lintian privacy-breach-uses-embedded-file
+	find examples -name '*.html' -exec sed -i -e "s@//code.jquery.com/jquery-2.1.1.js at file:///usr/share/javascript/jquery/jquery.js at g" '{}' \; # lintian privacy-breach-uses-embedded-file
 
 override_dh_auto_build-arch:
 	dh_auto_build --builddirectory=$(BUILDDIR) \

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



More information about the debian-science-commits mailing list