gnucash-docs maint: Bug 796800 - None of the "GnuCash Tutorial and Concepts Guide"...

John Ralls jralls at code.gnucash.org
Tue Sep 11 13:38:00 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash-docs/commit/c8171320 (commit)
	from  https://github.com/Gnucash/gnucash-docs/commit/ecd868ba (commit)



commit c81713206bcc9546f628701b89357ea0d7bba669
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Aug 10 11:36:30 2018 -0700

    Bug 796800 - None of the "GnuCash Tutorial and Concepts Guide"...
    
    graphics (.png files) display.
    
    Fix missing figures, broken internal links.

diff --git a/chm.make b/chm.make
index 76fc0e9..d16d513 100644
--- a/chm.make
+++ b/chm.make
@@ -1,7 +1,7 @@
 # Create CHM help files for Win32
 # Copyright 2017 John Ralls <jralls at ceridwen.us>
 # Procedure lifted from make_chm() in gnucash-on-windows.git:install-impl.sh,
-# originally written by Andreas Köhler.
+# originally written by Andreas Köhler.
 
 chmfile=$(docname).chm
 mapfile=$(docname).hhmap
@@ -20,6 +20,9 @@ install-chm-local: $(chmfile) $(mapfile)
 
 .xml.chm:
 	${XSLTPROC} ${htmlhelp_xsl} ${srcdir}/$(docname).xml
+	if test ! -d ${builddir}/figures ; then \
+		ln -s ${srcdir}/figures ${builddir} ; \
+	fi
 	count=0
 	echo >> htmlhelp.hhp
 	echo "[ALIAS]" >> htmlhelp.hhp
@@ -28,10 +31,10 @@ install-chm-local: $(chmfile) $(mapfile)
 	echo "[Map]" > htmlhelp.hhmap
 	echo "Searching for anchors ..."
 	for id in `cat ${srcdir}/*.xml | sed '/sect.*id=/!d;s,.*id=["'\'']\([^"'\'']*\)["'\''].*,\1,'` ; do \
-		files=`grep -l "[\"']${id}[\"']" *.html` || continue; \
-		echo "IDH_$((++count))=${files}#${id}" >> htmlhelp.hhp; \
-		echo "#define IDH_${count} ${count}" >> mymaps; \
-		echo "${id}=${count}" >> htmlhelp.hhmap; \
+		files=`grep -l "[\"']$${id}[\"']" *.html` || continue; \
+		echo "IDH_$$((++count))=$${files}#$${id}" >> htmlhelp.hhp; \
+		echo "#define IDH_$${count} $${count}" >> mymaps; \
+		echo "$${id}=$${count}" >> htmlhelp.hhmap; \
 	done
 	echo >> htmlhelp.hhp
 	echo "[MAP]" >> htmlhelp.hhp



Summary of changes:
 chm.make | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)



More information about the gnucash-changes mailing list