From 09e107c011529e174fb57ef82d9e3cf4f064925f Mon Sep 17 00:00:00 2001 From: David Minton Date: Wed, 16 Aug 2023 22:44:17 -0400 Subject: [PATCH] Streamlined the dependency building scripts --- buildscripts/fetch_dependencies.sh | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100755 buildscripts/fetch_dependencies.sh diff --git a/buildscripts/fetch_dependencies.sh b/buildscripts/fetch_dependencies.sh deleted file mode 100755 index f0e615633..000000000 --- a/buildscripts/fetch_dependencies.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# This script will download all of the dependency libraries needed by Swiftest. -# Zlib, hdf5, netcdf-c, netcdf-fortran -# -# Copyright 2023 - David Minton -# This file is part of Swiftest. -# Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -# Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty -# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# You should have received a copy of the GNU General Public License along with Swiftest. -# If not, see: https://www.gnu.org/licenses. -SCRIPT_DIR=$(realpath $(dirname $0)) -ROOT_DIR=$(realpath ${SCRIPT_DIR}/..) -# Parse arguments -USTMT="Usage: ${0} <-d /path/to/download]" -DOWNLOAD_DIR="${ROOT_DIR}/build" -while getopts ":d:" ARG; do - case "${ARG}" in - d) - DOWNLOAD_DIR="${OPTARG}" - ;; - :) - echo "Error: -${OPTARG} requires an argument." - echo $USTMT - exit 1 - ;; - *) - ;; - esac -done - -mkdir -p ${DOWNLOAD_DIR} -cd $DOWNLOAD_DIR -wget -qO- https://www.zlib.net/zlib-1.2.13.tar.gz | tar xvz -wget -qO- https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.1/src/hdf5-1.14.1-2.tar.gz | tar xvz -wget -qO- https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.9.2.tar.gz | tar xvz -wget -qO- https://github.com/Unidata/netcdf-fortran/archive/refs/tags/v4.6.1.tar.gz | tar xvz