|
[Sponsors] |
June 10, 2008, 07:30 |
Hello,
I would like to prop
|
#1 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello,
I would like to propose a small correction to the script wcleanMachine in order to correctly cleanup the Make directory under src/Pstream/mpi. With the actual current version of wcleanMachine, the clean-up is not made properly under src/Pstream/mpi/ because the script only looks for an exact machine pattern under the Make directory, which usually is $WM_OPTIONS. But under src/Pstream/mpi, we usually end up with directory names like this: Make/$(WM_OPTIONS)MPI or Make/$(WM_OPTIONS)LAM or Make/$(WM_OPTIONS)OPENMPI and wcleanMachine fails to remove those. So I would like to propose this little modification to the script wcleanMachine in order to handle this cleanup problem: # find `find . -depth \( -name "Make.[A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d -name "*$1" \) -exec rm -r { \; # <---- old version} find `find . -depth \( -name "Make.[A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d -regex ".*$1\|.*$1$WM_MPLIB" \) -exec rm -r { \;} Martin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ICEM SCRIPT | bhaskar | CFX | 0 | January 3, 2009 04:49 |
Error in Tcl script | Haider | Fidelity CFD | 2 | October 5, 2007 01:44 |
awk script question | awk script question | Main CFD Forum | 0 | March 28, 2005 02:06 |
Kill Script | DAE | FLUENT | 3 | March 31, 2003 04:43 |
linking the script | Mavinakere | FLUENT | 0 | September 12, 2002 11:57 |