From 0dcc8eb4ae3c2554743ee49c3850ea7cd426e2e5 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 15 Oct 2010 14:21:28 +0000 Subject: [PATCH] Add DOCDIR variable so the location of the documentation files can be changed. Patch supplied by Stelian Ionescu, from a patch for gentoo. --- tools/make-main-dist.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/make-main-dist.sh b/tools/make-main-dist.sh index 9f2c7ef39..e52ca3fe4 100755 --- a/tools/make-main-dist.sh +++ b/tools/make-main-dist.sh @@ -29,6 +29,7 @@ then fi DESTDIR=${INSTALL_DIR:-release-$$} +DOCDIR=${DOCDIR:-doc/cmucl} MANDIR=${MANDIR:-man/man1} TARGET="`echo $1 | sed 's:/*$::'`" VERSION=$2 @@ -86,11 +87,11 @@ fi # set -x echo Installing main components install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/bin -install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/doc/cmucl install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/ext-formats +install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/${DOCDIR} install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/${MANDIR} install ${GROUP} ${OWNER} -m 0755 $TARGET/lisp/lisp $DESTDIR/bin/ if [ "$EXECUTABLE" = "true" ] @@ -150,11 +151,11 @@ install ${GROUP} ${OWNER} -m 0644 src/general-info/cmucl.1 \ $DESTDIR/${MANDIR}/ install ${GROUP} ${OWNER} -m 0644 src/general-info/lisp.1 \ $DESTDIR/${MANDIR}/ -install ${GROUP} ${OWNER} -m 0644 src/general-info/README $DESTDIR/doc/cmucl/ +install ${GROUP} ${OWNER} -m 0644 src/general-info/README $DESTDIR/${DOCDIR} if [ -f src/general-info/release-$VERSION.txt ] then install ${GROUP} ${OWNER} -m 0644 src/general-info/release-$VERSION.txt \ - $DESTDIR/doc/cmucl/ + $DESTDIR/${DOCDIR} fi if [ -z "$INSTALL_DIR" ]; then -- GitLab