hypre/AUTOTEST/docs.sh

45 lines
837 B
Bash
Raw Normal View History

#!/bin/bash
# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other
2019-07-08 10:26:24 +08:00
# HYPRE Project Developers. See the top-level COPYRIGHT file for details.
#
2019-07-08 10:26:24 +08:00
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
testname=`basename $0 .sh`
# Echo usage information
case $1 in
-h|-help)
2007-12-01 07:24:44 +08:00
cat <<EOF
$0 [-h|-help] {src_dir}
where: {src_dir} is the hypre source directory
-h|-help prints this usage information and exits
This script tests the documentation build (on the tux machines).
Example usage: $0 ../src
EOF
2007-12-01 07:24:44 +08:00
exit
;;
esac
# Setup
src_dir=`cd $1; pwd`
shift
# Make sure Makefile.config is generated
cd $src_dir
./configure > /dev/null 2>&1
# Test documentation build in docs/
cd docs
make clean
make
# Test documentation build in examples/docs/
cd ../examples/docs
make distclean
make