mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
foamCopySettings: more readable with sed/tr
This commit is contained in:
@ -82,20 +82,13 @@ fileList=$(find -H $srcDir -mindepth 1 -maxdepth 1 -not -name "processor*")
|
|||||||
# avoid polyMesh and processor* directories
|
# avoid polyMesh and processor* directories
|
||||||
rsync="rsync --exclude polyMesh --exclude processor*"
|
rsync="rsync --exclude polyMesh --exclude processor*"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# get any extra options
|
# get any extra user options
|
||||||
# only extract lines starting with --option xxx
|
# extract lines starting with '--longOption'
|
||||||
#
|
#
|
||||||
if rcFile=$(foamEtcFile $Script.rc)
|
if rcFile=$(foamEtcFile $Script.rc)
|
||||||
then
|
then
|
||||||
userOpts=$(
|
rsync="$rsync "$(sed -ne '/^ *--/p' $rcFile | tr '\n' ' ')
|
||||||
cat $rcFile | while read userOpts
|
|
||||||
do
|
|
||||||
[ "${userOpts##--}" != "${userOpts}" ] && echo $userOpts
|
|
||||||
done
|
|
||||||
)
|
|
||||||
rsync="$rsync $userOpts"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user