From c020c263efb7f0eece8650c5bac9555912bb38ac Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 10 Dec 2014 12:41:01 +0000 Subject: [PATCH] wcleanMachine: add default behavior without argument the same as -current --- wmake/wcleanMachine | 46 ++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/wmake/wcleanMachine b/wmake/wcleanMachine index 92d5072bc1..7981a55cbd 100755 --- a/wmake/wcleanMachine +++ b/wmake/wcleanMachine @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -26,43 +26,51 @@ # wcleanMachine # # Description -# Searches the directories below the current directory for the object -# file directories of the specified machine type(s) and deletes them +# Searches the directory tree starting at the current directory for the +# object file directories of the specified machine type(s) and deletes them. +# If a machine type is not provided the current machine type is assumed. # -# Usage: wcleanMachine [ .. ] +# Usage: wcleanMachine [ -current ] +# wcleanMachine [ .. ] # #------------------------------------------------------------------------------ usage() { exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<