Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove STABLE_BUILD option #189

Merged
merged 2 commits into from Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions candi.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ PACKAGES="${PACKAGES} dealii"
# Install the following deal.II version:
DEAL_II_VERSION=v9.2.0

# Option {ON|OFF}: Would you like to build stable version of deal.II?
# If STABLE_BUILD=OFF, then the development version of deal.II will be
# installed.
STABLE_BUILD=ON

if [ ${STABLE_BUILD} = OFF ]; then
DEAL_II_VERSION=master
fi

#########################################################################

# If you want to use Trilinos, decide if you want v12.x.x (AUTO) or v11.x.x
Expand All @@ -108,7 +99,7 @@ MKL=OFF

#########################################################################

# If you have commits from the deal.II master to cherry-pick in STABLE_BUILD
# If you have commits from the deal.II master to cherry-pick in stable version

# bugfix for TrilinosWrapper::SparseMatrix ::add(factor, SparseMatrix)
#DEAL_CHERRYPICKCOMMITS="8bcaf55df6754238b2e4e41bf6a5dd276a97bdd2 ${DEAL_CHERRYPICKCOMMITS}"
Expand Down
40 changes: 9 additions & 31 deletions candi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,28 +335,22 @@ package_fetch () {
quit_if_fail "candi: download_archive ${NAME}${PACKING} failed"

elif [ ${PACKING} = "git" ]; then
# Go into the unpack dir
cd ${UNPACK_PATH}
# Suitably clone or update git repositories

# Clone the git repository if not existing locally
if [ ! -d ${EXTRACTSTO} ]; then
git clone ${SOURCE}${NAME} ${EXTRACTSTO}
quit_if_fail "candi: git clone ${SOURCE}${NAME} ${EXTRACTSTO} failed"
else
cd ${EXTRACTSTO}
git checkout master --force
quit_if_fail "candi: git checkout master --force failed"

git pull
quit_if_fail "candi: git pull failed"
cd ..
fi

if [ ${STABLE_BUILD} = ON ]; then
cd ${EXTRACTSTO}
git checkout ${VERSION} --force
quit_if_fail "candi: git checkout ${VERSION} --force failed"
cd ..
fi
# Checkout the desired version
cd ${EXTRACTSTO}
git checkout ${VERSION} --force
quit_if_fail "candi: git checkout ${VERSION} --force failed"

# Switch to the tmp dir
cd ..
elif [ ${PACKING} = "hg" ]; then
cd ${UNPACK_PATH}
# Suitably clone or update hg repositories
Expand Down Expand Up @@ -672,7 +666,6 @@ default INSTALL_PATH=${PREFIX_PATH}
default CONFIGURATION_PATH=${INSTALL_PATH}/configuration

default CLEAN_BUILD=OFF
default STABLE_BUILD=ON
default DEVELOPER_MODE=OFF

default PACKAGES_OFF=""
Expand Down Expand Up @@ -867,15 +860,6 @@ for PACKAGE in ${PACKAGES[@]}; do
done
echo


echo "-------------------------------------------------------------------------------"
if [ ${STABLE_BUILD} = ON ]; then
cecho ${INFO} "Building stable releases of ${PROJECT} packages."
else
cecho ${WARN} "Building development versions of ${PROJECT} packages."
fi
echo

# if the program 'module' is available, output the currently loaded modulefiles
if builtin command -v module > /dev/null; then
echo "-------------------------------------------------------------------------------"
Expand Down Expand Up @@ -1094,12 +1078,6 @@ for PACKAGE in ${PACKAGES[@]}; do
# Fetch information pertinent to the package
source ${PROJECT}/packages/${PACKAGE}.package

# Turn to a stable version of the package if that's what the user
# wants and it exists
if [ ${STABLE_BUILD} = ON ] && [ -e ${PROJECT}/packages/${PACKAGE}-stable.package ]; then
source ${PROJECT}/packages/${PACKAGE}-stable.package
fi

# Ensure that the package file is sanely constructed
if [ ! "${BUILDCHAIN}" ]; then
cecho ${BAD} "${PACKAGE}.package is not properly formed. Please check that all necessary variables are defined."
Expand Down
10 changes: 0 additions & 10 deletions deal.II-toolchain/packages/dealii-stable.package

This file was deleted.

2 changes: 1 addition & 1 deletion deal.II-toolchain/packages/dealii.package
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=master
VERSION=${DEAL_II_VERSION}
NAME=dealii.git
EXTRACTSTO=deal.II-${VERSION}
SOURCE=https://github.com/dealii/
Expand Down
2 changes: 1 addition & 1 deletion deal.II-toolchain/platforms/deprecated/ubuntu14.platform
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# version number is not set to AUTO.
# The last point is due to own compilers (e.g. intel) which support
# Trilinos 12.
if [ ${STABLE_BUILD} = ON ] && [ ${DEAL_II_VERSION} == "v8.3.0" ] && [ ${TRILINOS_MAJOR_VERSION} == "AUTO" ]; then
if [ ${DEAL_II_VERSION} ~= "master" ] && [ ${DEAL_II_VERSION} == "v8.3.0" ] && [ ${TRILINOS_MAJOR_VERSION} == "AUTO" ]; then
TRILINOS_MAJOR_VERSION=11
fi

Expand Down