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:
Mark Olesen
2011-02-15 17:24:39 +01:00
parent 677a2a8d11
commit 28e6389173

View File

@ -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%%/}