Commit f87b711746ff1ab4f831c22d471a1fa9f63c76e1

Nikhil Ramakrishnan 2018-08-26T17:46:25

* configure: Copy assets required by docwriter. Copy directory `docs/reference/markdown' when FreeType is compiled in a different directory. Fixes `make refdoc' if builddir != srcdir. Reported as http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html

diff --git a/ChangeLog b/ChangeLog
index 41caf8b..63bb5dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2018-08-26  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	* configure: Copy assets required by docwriter.
+
+	Copy directory `docs/reference/markdown' when FreeType is compiled in a
+	different directory.
+
+	Fixes `make refdoc' if builddir != srcdir.
+
+	Reported as
+
+	  http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html
+
 2018-08-26  Werner Lemberg  <wl@gnu.org>
 
 	* src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.
diff --git a/configure b/configure
index f9d2186..62dcce5 100755
--- a/configure
+++ b/configure
@@ -96,6 +96,8 @@ inode_dst=`ls -id $abs_curr_dir | awk '{print $1}'`
 if test $inode_src -ne $inode_dst; then
   if test ! -d reference; then
     mkdir reference
+    echo "Copying documentation assets"
+    cp -R $abs_ft2_dir/docs/reference/markdown $abs_curr_dir/reference
   fi
   if test ! -r $abs_curr_dir/modules.cfg; then
     echo "Copying \`modules.cfg'"