From 9c16f9141639e2f74afd654764d03300a40917da Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 5 May 2002 01:47:27 +0000 Subject: [PATCH] r1927: *** empty log message *** --- cvsbp-prepare | 26 ++++++++++++++++++++++---- doc/Makefile | 8 ++++---- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/cvsbp-prepare b/cvsbp-prepare index 8fb3290..cd9155b 100755 --- a/cvsbp-prepare +++ b/cvsbp-prepare @@ -1,7 +1,25 @@ +#!/bin/bash + +# Clean checked out CVS directory rm -f upload.sh make-dist.sh make-doc.sh cvsbp-prepare rm -f `find . -type f -name .cvsignore` -if [ -f doc/Makefile ]; then - pushd doc > /dev/null - make - popd > /dev/null + +# Try to copy documentation from Work dir +CWD=`pwd` +BASENAME=`basename ${CWD}` +BASEDIR=`echo ${BASENAME} | sed -n 's/-[0-9].*$//p'` +DOCDIR=/usr/local/src/Work/${BASEDIR}/doc + +if [ -d ${DOCDIR} -a -d doc ]; then + echo "Copying documentation" + cp -a ${DOCDIR}/html ${DOCDIR}/*pdf doc/. + echo "Unable to copy documentation" fi + +# Try to build documentation +# Not used because PDF created at difference times or places will not match +#if [ -f doc/Makefile ]; then +# pushd doc > /dev/null +# make +# popd > /dev/null +#fi diff --git a/doc/Makefile b/doc/Makefile index 3509c73..c87c599 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,7 +5,7 @@ # Programer: Kevin M. Rosenberg # Date Started: Mar 2002 # -# CVS Id: $Id: Makefile,v 1.24 2002/05/01 01:00:51 kevin Exp $ +# CVS Id: $Id: Makefile,v 1.25 2002/05/05 01:47:27 kevin Exp $ # # This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg # @@ -47,13 +47,13 @@ TMPFILES=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log DOCFILES=$(shell echo *.sgml) .PHONY: all -all: html pdf ps +all: html pdf .PHONY: dist -dist: html pdf ps +dist: html pdf .PHONY: doc -doc: html ps +doc: html pdf CHECK=nsgmls -s -C ${CATALOG} || exit 1 -- 2.34.1