mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: accept and silently ignore -current option in foamPackDeps
- may be useful in the future. For now it keeps consistency with foamPackMake, foamPackBins
This commit is contained in:
@ -58,6 +58,7 @@ cat <<USAGE
|
||||
Usage: ${0##*/} [OPTION]
|
||||
options:
|
||||
-b, -bzip2 use bzip2 instead of gzip compression
|
||||
-c, -current for compatibility - currently ignored
|
||||
-o, -output <dir> specify alternative output directory
|
||||
|
||||
* Pack and compress *.dep files from $codeBase
|
||||
@ -67,7 +68,7 @@ USAGE
|
||||
}
|
||||
|
||||
|
||||
unset outputDir
|
||||
unset archOptions outputDir
|
||||
packExt=tgz
|
||||
|
||||
# parse options
|
||||
@ -81,6 +82,10 @@ do
|
||||
packExt=tbz
|
||||
shift
|
||||
;;
|
||||
-c | -current) # use $WM_OPTIONS - eg, 'linux64GccDPOpt'
|
||||
archOptions="$WM_OPTIONS"
|
||||
shift
|
||||
;;
|
||||
-o | -output)
|
||||
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
|
||||
outputDir=${2%%/}
|
||||
|
||||
Reference in New Issue
Block a user