From ba8fdda5cc9b11f1602f56f5bb9e290c16ffe478 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 30 Oct 2017 10:31:05 +0100 Subject: [PATCH] ENH: improve wcleanBuild, wcleanPlatform flexibility (issue #627) - add -compiler=NAME option to remove a build or platforms directory corresponding to any specified compiler on the current arch. - when -compiler or -compiler=NAME is specified, also clean related sub-directories as well. This will cleanup mpi-related directory. --- wmake/scripts/wcleanBuild | 185 ++++++++++++++++++++++++++++++++++++++ wmake/wcleanBuild | 136 +--------------------------- wmake/wcleanPlatform | 138 +--------------------------- 3 files changed, 187 insertions(+), 272 deletions(-) create mode 100755 wmake/scripts/wcleanBuild mode change 100755 => 120000 wmake/wcleanBuild mode change 100755 => 120000 wmake/wcleanPlatform diff --git a/wmake/scripts/wcleanBuild b/wmake/scripts/wcleanBuild new file mode 100755 index 0000000000..0c13af7642 --- /dev/null +++ b/wmake/scripts/wcleanBuild @@ -0,0 +1,185 @@ +#!/bin/sh +#------------------------------------------------------------------------------ +# ========= | +# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox +# \\ / O peration | +# \\ / A nd | Copyright (C) 2017 OpenCFD Ltd. +# \\/ M anipulation | +#------------------------------------------------------------------------------- +# License +# This file is part of OpenFOAM. +# +# OpenFOAM 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. +# +# OpenFOAM 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 OpenFOAM. If not, see . +# +# Script +# wcleanBuild +# +# Usage +# wcleanBuild