File: upstream_fix-qch-build.patch

package info (click to toggle)
cppreference-doc 20170409-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 259,892 kB
  • sloc: xml: 570,184; javascript: 2,779; python: 1,923; php: 520; makefile: 168; sh: 25; ansic: 9; cpp: 9
file content (24 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Origin: https://github.com/p12tic/cppreference-doc/commit/573e92315a4bc14230ba5bb930bad36035a67671
Description: This changes the file extension of the qhelpgenerator input file to use
 a .qhp extension instead of .xml. This is required because an update to
 qhelpgenerator now rejects the .xml extension.

--- a/Makefile
+++ b/Makefile
@@ -163,13 +163,13 @@
 #build the .qch (QT help) file
 output/cppreference-doc-en-cpp.qch: output/qch-help-project-cpp.xml
 	#qhelpgenerator only works if the project file is in the same directory as the documentation
-	cp "output/qch-help-project-cpp.xml" "output/reference/qch.xml"
+	cp "output/qch-help-project-cpp.xml" "output/reference/qch.qhp"
 
 	pushd "output/reference" > /dev/null; \
-	$(qhelpgenerator) "qch.xml" -o "../cppreference-doc-en-cpp.qch"; \
+	$(qhelpgenerator) "qch.qhp" -o "../cppreference-doc-en-cpp.qch"; \
 	popd > /dev/null
 
-	rm -f "output/reference/qch.xml"
+	rm -f "output/reference/qch.qhp"
 
 output/qch-help-project-cpp.xml: output/cppreference-doc-en-cpp.devhelp2
 	#build the file list