Skip to content
Snippets Groups Projects
Commit 28e63891 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: accept and silently ignore -current option in foamPackDeps

- may be useful in the future. For now it keeps consistency with
  foamPackMake, foamPackBins
parent 677a2a8d
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ cat <<USAGE ...@@ -58,6 +58,7 @@ cat <<USAGE
Usage: ${0##*/} [OPTION] Usage: ${0##*/} [OPTION]
options: options:
-b, -bzip2 use bzip2 instead of gzip compression -b, -bzip2 use bzip2 instead of gzip compression
-c, -current for compatibility - currently ignored
-o, -output <dir> specify alternative output directory -o, -output <dir> specify alternative output directory
* Pack and compress *.dep files from $codeBase * Pack and compress *.dep files from $codeBase
...@@ -67,7 +68,7 @@ USAGE ...@@ -67,7 +68,7 @@ USAGE
} }
unset outputDir unset archOptions outputDir
packExt=tgz packExt=tgz
# parse options # parse options
...@@ -81,6 +82,10 @@ do ...@@ -81,6 +82,10 @@ do
packExt=tbz packExt=tbz
shift shift
;; ;;
-c | -current) # use $WM_OPTIONS - eg, 'linux64GccDPOpt'
archOptions="$WM_OPTIONS"
shift
;;
-o | -output) -o | -output)
[ "$#" -ge 2 ] || usage "'$1' option requires an argument" [ "$#" -ge 2 ] || usage "'$1' option requires an argument"
outputDir=${2%%/} outputDir=${2%%/}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment