mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: allow configurable package, version separator (foamPackRelease)
This commit is contained in:
committed by
Andrew Heather
parent
7e9a417fca
commit
47e1d13655
@ -52,6 +52,7 @@ options:
|
|||||||
-no-modules Exclude submodules
|
-no-modules Exclude submodules
|
||||||
-no-patch Ignore _patch number for the output tar-file
|
-no-patch Ignore _patch number for the output tar-file
|
||||||
-compress=TYPE Compress with specified type
|
-compress=TYPE Compress with specified type
|
||||||
|
-sep=SEP Change the patch, version separator from '_' to SEP
|
||||||
-tgz Alias for -compress=tgz
|
-tgz Alias for -compress=tgz
|
||||||
-help Print help
|
-help Print help
|
||||||
|
|
||||||
@ -85,6 +86,7 @@ die()
|
|||||||
outputDir="."
|
outputDir="."
|
||||||
unset skipModules skipPatchNum
|
unset skipModules skipPatchNum
|
||||||
unset gitbase head commit compress
|
unset gitbase head commit compress
|
||||||
|
versionSeparator='_'
|
||||||
|
|
||||||
while [ "$#" -gt 0 ]
|
while [ "$#" -gt 0 ]
|
||||||
do
|
do
|
||||||
@ -109,6 +111,9 @@ do
|
|||||||
-compress=*)
|
-compress=*)
|
||||||
compress="${1#*=}"
|
compress="${1#*=}"
|
||||||
;;
|
;;
|
||||||
|
-sep=*)
|
||||||
|
versionSeparator="${1#*=}"
|
||||||
|
;;
|
||||||
-tgz)
|
-tgz)
|
||||||
compress="${1#*-}"
|
compress="${1#*-}"
|
||||||
;;
|
;;
|
||||||
@ -125,6 +130,8 @@ done
|
|||||||
commit="$1"
|
commit="$1"
|
||||||
[ "$#" -eq 1 ] && [ -n "$commit" ] || usage "Requires one argument"
|
[ "$#" -eq 1 ] && [ -n "$commit" ] || usage "Requires one argument"
|
||||||
|
|
||||||
|
# Failsafe patch, version separator
|
||||||
|
: "${versionSeparator:=_}"
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Resolve the output directory
|
# Resolve the output directory
|
||||||
@ -202,7 +209,7 @@ then
|
|||||||
echo "Ignoring patch number for output name" 1>&2
|
echo "Ignoring patch number for output name" 1>&2
|
||||||
elif [ "${patch:-0}" -gt 0 ]
|
elif [ "${patch:-0}" -gt 0 ]
|
||||||
then
|
then
|
||||||
tarName="${tarName}_${patch}"
|
tarName="${tarName}${versionSeparator}${patch}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|||||||
Reference in New Issue
Block a user