Scripts: Add {} following -I option to xargs
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1573
This commit is contained in:
parent
7077338993
commit
2bd5085835
9 changed files with 17 additions and 17 deletions
|
|
@ -150,7 +150,7 @@ esac
|
|||
trap 'rm -f $packFile 2>/dev/null' INT
|
||||
|
||||
find -H $packDir -depth -name Make -type d -print | \
|
||||
xargs -I find '{}' -depth -name "$archOptions*" -type d -print | \
|
||||
xargs -I {} find '{}' -depth -name "$archOptions*" -type d -print | \
|
||||
tar $tarOpt $packFile -T -
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ do
|
|||
then
|
||||
echo "touching all .dep files under Make/$WM_OPTIONS* : $i"
|
||||
find $i -depth -name Make -type d -print | \
|
||||
xargs -I find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \
|
||||
xargs -I find '{}' -name '*.dep' -type f -print | \
|
||||
xargs -I {} find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \
|
||||
xargs -I {} find '{}' -name '*.dep' -type f -print | \
|
||||
xargs -t touch
|
||||
else
|
||||
echo "touching all .dep files: $i"
|
||||
|
|
|
|||
|
|
@ -83,8 +83,8 @@ do
|
|||
then
|
||||
echo "touching all .o files under Make/$WM_OPTIONS* : $i"
|
||||
find $i -depth -name Make -type d -print | \
|
||||
xargs -I find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \
|
||||
xargs -I find '{}' -name '*.o' -type f -print | \
|
||||
xargs -I {} find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \
|
||||
xargs -I {} find '{}' -name '*.o' -type f -print | \
|
||||
xargs -t touch
|
||||
else
|
||||
echo "touching all .o files: $i"
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@
|
|||
cp ../lesFiles/fvS* ../lesFiles/controlDict system/
|
||||
cp ../lesFiles/LESProperties ../lesFiles/turbulenceProperties constant/
|
||||
|
||||
ls -d processor* | xargs -I rm -rf ./{}/0 $1
|
||||
ls -d processor* | xargs -I mv ./{}/500 ./{}/0 $1
|
||||
ls -d processor* | xargs -I rm -rf ./{}/0/uniform $1
|
||||
ls -d processor* | xargs -I {} rm -rf ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} mv ./{}/500 ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform $1
|
||||
|
||||
ls -d processor* | xargs -I cp ../lesFiles/LESProperties ./{}/constant/ $1
|
||||
ls -d processor* | xargs -I cp ../lesFiles/turbulenceProperties ./{}/constant/ $1
|
||||
ls -d processor* | xargs -I cp ../lesFiles/nuSgs ./{}/0/ $1
|
||||
ls -d processor* | xargs -I {} cp ../lesFiles/LESProperties ./{}/constant/ $1
|
||||
ls -d processor* | xargs -I {} cp ../lesFiles/turbulenceProperties ./{}/constant/ $1
|
||||
ls -d processor* | xargs -I {} cp ../lesFiles/nuSgs ./{}/0/ $1
|
||||
|
||||
|
||||
runParallel pisoFoam 8
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ runParallel snappyHexMesh 8 -overwrite -parallel
|
|||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||
|
||||
runParallel renumberMesh 8 -overwrite
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ runParallel snappyHexMesh 6 -overwrite
|
|||
#cp -r 0.org 0 > /dev/null 2>&1
|
||||
|
||||
#- For parallel running
|
||||
ls -d processor* | xargs -I rm -rf ./{}/0
|
||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0
|
||||
ls -d processor* | xargs -I {} rm -rf ./{}/0
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
|
||||
|
||||
runParallel patchSummary 6
|
||||
runParallel potentialFoam 6 -noFunctionObjects
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ runParallel snappyHexMesh 4 -overwrite
|
|||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||
|
||||
runParallel topoSet 4
|
||||
runParallel `getApplication` 4
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ find . -name '*.dep' -exec rm {} \;
|
|||
|
||||
echo "Cleaning Make subdirectories"
|
||||
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
||||
xargs -I find '{}' -mindepth 1 -maxdepth 1 -type d -print | \
|
||||
xargs -I {} find '{}' -mindepth 1 -maxdepth 1 -type d -print | \
|
||||
xargs rm -rf
|
||||
|
||||
echo "Removing lnInclude and intermediate directories"
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ do
|
|||
echo "Cleaning machine type: $machType"
|
||||
|
||||
find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \
|
||||
xargs -I find '{}' -mindepth 1 -maxdepth 1 \
|
||||
xargs -I {} find '{}' -mindepth 1 -maxdepth 1 \
|
||||
\( -type d -name "*$machType" -o -name "*$machType$WM_MPLIB" \) \
|
||||
-print | xargs rm -rf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue