Mercurial > hg > CbC > CbC_gcc
diff maintainer-scripts/generate_libstdcxx_web_docs @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/maintainer-scripts/generate_libstdcxx_web_docs Thu Oct 25 07:37:49 2018 +0900 +++ b/maintainer-scripts/generate_libstdcxx_web_docs Thu Feb 13 11:34:05 2020 +0900 @@ -3,16 +3,28 @@ # i.e. http://gcc.gnu.org/onlinedocs/gcc-x.y.z/libstdc++* SRCDIR=${1} -DOCSDIR=$(realpath ${2}) +DOCSDIR=${2} if ! [ $# -eq 2 -a -x "${SRCDIR}/configure" -a -d "${DOCSDIR}" ] then + if ! [ $# -eq 2 ] + then + echo "$0: Wrong number of arguments" >&2 + elif ! [ -x "${SRCDIR}/configure" ] + then + echo "$0: No executable configure script found in $SRCDIR" >&2 + elif ! [ -d "${DOCSDIR}" ] + then + echo "$0: Output directory does not exist: $DOCSDIR" >&2 + fi echo "Usage: $0 <gcc src dir> <doc output dir>" >&2 exit 1 fi set -e +DOCSDIR=$(realpath ${DOCSDIR}) + # Check we have some of the required tools for i in doxygen dot dblatex pdflatex makeindex do