diff --git a/bin/engridFoam b/bin/engridFoam index 076f34ddee0663a48f9f50f47df0270940561fa1..6384c365e2ce62987fe316db2285dfca3cde2e0b 100755 --- a/bin/engridFoam +++ b/bin/engridFoam @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -30,6 +30,7 @@ # #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/foamClearPolyMesh b/bin/foamClearPolyMesh index 312e39f3053f036826a5fbe94bb73556c3ad0d4f..1d6d8a3df18f92e7c3d45390c4373f223c1f5fb9 100755 --- a/bin/foamClearPolyMesh +++ b/bin/foamClearPolyMesh @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -31,8 +31,9 @@ # #------------------------------------------------------------------------------ usage() { - while [ "$#" -ge 1 ]; do echo "$1" 1>&2; shift; done - cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -ge 1 ]; do echo "$1"; shift; done + cat <<USAGE Usage: ${0##*/} [OPTION] options: diff --git a/bin/foamCopySettings b/bin/foamCopySettings index 9e1969c96bd3c48886194760309882e9e1650996..58ad7a264b16cd10ad1bff07143b66f7e4675ad3 100755 --- a/bin/foamCopySettings +++ b/bin/foamCopySettings @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -40,8 +40,9 @@ Script=${0##*/} #------------------------------------------------------------------------------ usage() { - while [ "$#" -ge 1 ]; do echo "$1" 1>&2; shift; done - cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -ge 1 ]; do echo "$1"; shift; done + cat <<USAGE Usage: $Script srcDir dstDir diff --git a/bin/foamEndJob b/bin/foamEndJob index 0ff09715604810e3cdf0e4b27d22b401244c503d..dc2d92fdc1f2265bc1e409be2c6148dd9eb74f32 100755 --- a/bin/foamEndJob +++ b/bin/foamEndJob @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -38,6 +38,7 @@ Script=${0##*/} usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE Usage: $Script [OPTION] <pid> diff --git a/bin/foamExec b/bin/foamExec index 47a2428ccd7466be73bc1e9fd6e6f33b9f4b329c..26ad311349634023a0c9c17ddbfed2dc057f3f1b 100755 --- a/bin/foamExec +++ b/bin/foamExec @@ -39,6 +39,7 @@ # foamEtcFile #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/foamJob b/bin/foamJob index 649d16d82968e2a8ea0d4c6b5037b54785597af3..06d56b9f06d4aa96276ddef244c4b85ccf0a5b2e 100755 --- a/bin/foamJob +++ b/bin/foamJob @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -29,6 +29,7 @@ # #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/foamLog b/bin/foamLog index 5658e1af6546f8d6140e44cd7906e1d3c040e88a..b5ca4900b0caa6fe9ea851e2463db9f5c524c44d 100755 --- a/bin/foamLog +++ b/bin/foamLog @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -35,6 +35,7 @@ Script=${0##*/} toolsDir=${0%/*}/tools usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat <<USAGE diff --git a/bin/foamNew b/bin/foamNew index 1267d3bb9da78f060661d7a2f98d964f977b2d06..48d689936012631551dde042c2bf5dd42c142151 100755 --- a/bin/foamNew +++ b/bin/foamNew @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -30,6 +30,7 @@ # #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE Usage: ${0##*/} <type> {args} diff --git a/bin/foamNewCase b/bin/foamNewCase index 52cd516bb695f44160f40c1398667ba6d4a7a049..fda86b4bddaafabeca9c4ffa3dd6d3e7396cf6e7 100755 --- a/bin/foamNewCase +++ b/bin/foamNewCase @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -37,6 +37,7 @@ templateDir="appTemplates" #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/foamPack b/bin/foamPack index 5c22d5849a5fef4b2060348af5b2d8ab476e5aa8..19bc8f327b15a3902b99d2f7bef10b3bbe90e58e 100755 --- a/bin/foamPack +++ b/bin/foamPack @@ -33,8 +33,9 @@ packDir=$WM_PROJECT-$WM_PROJECT_VERSION toolsDir="${0%/*}/tools" # this script is located in the tools/ parent dir usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] options: -o, -output <dir> specify alternative output directory diff --git a/bin/foamPackBin b/bin/foamPackBin index 1aee24cadf72f3f0f758ecbd75bc92525f40a88b..36614ab781c5620fc28d65c7d33c9c348397f10e 100755 --- a/bin/foamPackBin +++ b/bin/foamPackBin @@ -54,8 +54,9 @@ esac usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] <archOptions> ${0##*/} [OPTION] -current options: diff --git a/bin/foamPackDeps b/bin/foamPackDeps index d0c65521228a5c8591ba6a1ab6b9a040ff573515..ab663a04c4e8dc516b8a4abf1699f151388f1798 100755 --- a/bin/foamPackDeps +++ b/bin/foamPackDeps @@ -52,8 +52,9 @@ esac usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] options: -b, -bzip2 use bzip2 instead of gzip compression diff --git a/bin/foamPackDoxygen b/bin/foamPackDoxygen index a5104e39b9a2f948e99920b65519e26186318ec6..e78cbcced611dfc3329f0e841406ea162441ef6d 100755 --- a/bin/foamPackDoxygen +++ b/bin/foamPackDoxygen @@ -33,8 +33,9 @@ packDir=$WM_PROJECT-$WM_PROJECT_VERSION htmlDir=doc/Doxygen/html usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] options: -b, -bzip2 use bzip2 instead of gzip compression diff --git a/bin/foamPackMake b/bin/foamPackMake index 08d2b69504a0728bd19eb8874906c362cb240204..c4b6841301876d07a63f3da0c14bb795741108b7 100755 --- a/bin/foamPackMake +++ b/bin/foamPackMake @@ -52,8 +52,9 @@ esac usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] <archOptions> ${0##*/} [OPTION] -current options: diff --git a/bin/foamPackThirdParty b/bin/foamPackThirdParty index 37625b42cd36548c1ee26d149e813de8caa5d6ed..bb7c0f6d78080ee987a7c8f221803c317a80c361 100755 --- a/bin/foamPackThirdParty +++ b/bin/foamPackThirdParty @@ -33,8 +33,9 @@ packDir=ThirdParty-$WM_PROJECT_VERSION toolsDir="${0%/*}/tools" # this script is located in the tools/ parent dir usage() { - while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done -cat <<USAGE 1>&2 + exec 1>&2 + while [ "$#" -gt 0 ]; do echo "$1"; shift; done +cat <<USAGE Usage: ${0##*/} [OPTION] options: -o <dir> specify alternative output directory diff --git a/bin/foamUpdateCaseFileHeader b/bin/foamUpdateCaseFileHeader index 92d856f749c13a1ad9fe01ee291c626fe3802d06..afc32cf151d99f9d950a3829d2fcfe1e98229118 100755 --- a/bin/foamUpdateCaseFileHeader +++ b/bin/foamUpdateCaseFileHeader @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -33,6 +33,7 @@ # #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/paraFoam b/bin/paraFoam index 1d4b1ba0a3bc3a4778689affe32eeba7f4a9dde1..ee13790c01d74f902d5e2c15dd7ebee39909203e 100755 --- a/bin/paraFoam +++ b/bin/paraFoam @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -33,6 +33,7 @@ # undefined behaviour #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/rmdepall b/bin/rmdepall index 69e0c29475d77b67f0576debd6b802c869feffef..39e4b7a21c3c61ed0825b680d29decf8da7d7201 100755 --- a/bin/rmdepall +++ b/bin/rmdepall @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -29,8 +29,9 @@ # Remove all .dep files or remove .dep files referring to <file> #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done - cat<<USAGE 1>&2 + cat<<USAGE Usage: ${0##*/} [file] Remove all .dep files or remove .dep files referring to <file> diff --git a/bin/rmdepold b/bin/rmdepold index 01197eb04fa10069dd7a863028546ac262a50e53..bb83bbd9b6b06063ba00748d38536531778b8c3b 100755 --- a/bin/rmdepold +++ b/bin/rmdepold @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -34,8 +34,9 @@ # - optionally remove empty directories #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done - cat<<USAGE 1>&2 + cat<<USAGE Usage: ${0##*/} [OPTION] [dir1 .. dirN] options: -rmdir find and remove empty directories (recursively) diff --git a/bin/tools/foamConfigurePaths b/bin/tools/foamConfigurePaths index c0b32f5327618cc0f40855eaae5d9cd098b7c121..4cc15532c6f533f445ecc07efa3aeb6b9c227fc6 100644 --- a/bin/tools/foamConfigurePaths +++ b/bin/tools/foamConfigurePaths @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -30,6 +30,7 @@ # #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/tools/org-batch b/bin/tools/org-batch index ae97370dbd08b104647a3e4358c56370ca2dfa67..c5d8ac60c20417aecbbee445f28df4e3eb8f082e 100755 --- a/bin/tools/org-batch +++ b/bin/tools/org-batch @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2009-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -32,10 +32,11 @@ Script=${0##*/} usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE -Usage: ${0##*/} [OPTIONS] file1 [.. fileN] +Usage: $Script [OPTIONS] file1 [.. fileN] options: -html create html (default) -latex create LaTeX diff --git a/bin/touchdep b/bin/touchdep index fd22f4db23a93b79a5461d77079fce8d77b53168..5ef6f9a7157cd4a6280b351bcbe42e4970a96bba 100755 --- a/bin/touchdep +++ b/bin/touchdep @@ -29,6 +29,7 @@ # touch all .dep files #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE diff --git a/bin/toucho b/bin/toucho index 7d6bbc98b6241caa1a9b8e80924b7f0cb4150b50..ea4233780ae76451b6930a4245b1bbc8fa279367 100755 --- a/bin/toucho +++ b/bin/toucho @@ -29,6 +29,7 @@ # touch all .o files #------------------------------------------------------------------------------ usage() { + exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE