1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/bin/bash
# ------------------------------------------------------------------------------
# Programmer(s): Daniel R. Reynolds, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
# See the top-level LICENSE and NOTICE files for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# SUNDIALS Copyright End
# ------------------------------------------------------------------------------
# Script to add ARKODE files to a SUNDIALS tar-file.
# ------------------------------------------------------------------------------
set -e
set -o pipefail
tarfile=$1
distrobase=$2
doc=$3
# all remaining inputs are for tar command
shift 3
tar=$*
echo " --- Add arkode module to $tarfile"
if [ $doc = "T" ]; then
$tar $tarfile $distrobase/doc/arkode/ark_guide.pdf
$tar $tarfile $distrobase/doc/arkode/ark_examples.pdf
fi
$tar $tarfile $distrobase/doc/arkode/guide/Makefile
$tar $tarfile $distrobase/doc/arkode/guide/source
echo " --- Add arkode include files to $tarfile"
$tar $tarfile $distrobase/include/arkode
echo " --- Add arkode source files to $tarfile"
$tar $tarfile $distrobase/src/arkode
echo " --- Add arkode examples to $tarfile"
$tar $tarfile $distrobase/examples/arkode
echo " --- Add arkode unit tests to $tarfile"
$tar $tarfile $distrobase/test/unit_tests/arkode
|