From 48c324f4d74487e1b705e1cdbd64fea666348483 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Thu, 16 Apr 2015 20:41:01 -0700
Subject: [PATCH] Install the asdf docs too.

Also, install the asdf/defsystem sources before the fasls so that the
fasls have a newer timestamp than the source.
---
 bin/make-main-dist.sh | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/bin/make-main-dist.sh b/bin/make-main-dist.sh
index e28299676..5e1cbd4f0 100755
--- a/bin/make-main-dist.sh
+++ b/bin/make-main-dist.sh
@@ -126,11 +126,11 @@ do
     install ${GROUP} ${OWNER} -m 0644 $f $DESTDIR/lib/cmucl/lib/ext-formats/
 done
 
-# Create the directories and install the fasl files for asdf and defsystem
-for f in asdf defsystem
+set -x
+# Create the directories for asdf and defsystem
+for f in asdf defsystem asdf/doc
 do
     install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/contrib/$f
-    install ${GROUP} ${OWNER} -m 0644 $TARGET/contrib/$f/$f.$FASL $DESTDIR/lib/cmucl/lib/contrib/$f
 done
 
 # Copy the source files for asdf and defsystem
@@ -139,6 +139,19 @@ do
     install ${GROUP} ${OWNER} -m 0644 src/$f $DESTDIR/lib/cmucl/lib/$f
 done
 
+# Install the fasl files for asdf and defsystem
+for f in asdf defsystem
+do
+    install ${GROUP} ${OWNER} -m 0644 $TARGET/contrib/$f/$f.$FASL $DESTDIR/lib/cmucl/lib/contrib/$f
+done
+
+# Install the docs for asdf
+for f in src/contrib/asdf/doc/*
+do
+    base=`basename $f`
+    install ${GROUP} ${OWNER} -m 0644 $f $DESTDIR/lib/cmucl/lib/contrib/asdf/doc/$base
+done
+
 install ${GROUP} ${OWNER} -m 0644 src/general-info/cmucl.1 \
 	$DESTDIR/${MANDIR}/
 install ${GROUP} ${OWNER} -m 0644 src/general-info/lisp.1 \
-- 
GitLab