Skip to content
Snippets Groups Projects
Commit ef86cd63 authored by Henry Weller's avatar Henry Weller
Browse files

Update "wrmdep -update" to remove dead symbolic links

Patch provided by Bruno Santos
Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=2016
parent 4bc77e6a
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# License # License
...@@ -196,11 +196,11 @@ updateMode) ...@@ -196,11 +196,11 @@ updateMode)
|| usage "Not in the project top-level directory" || usage "Not in the project top-level directory"
echo "Purging all dep files that relate to files that no longer exist..." echo "Purging all dep files that relate to files that no longer exist..."
fileNameList=$(find -L src applications -name '*.[CHL]' -type l \ fileNameList=$(find -L src applications -name '*.[CHL]' -type l)
-exec basename {} \;)
for fileName in $fileNameList for filePathAndName in $fileNameList
do do
fileName=$(basename $filePathAndName)
echo "Purging from 'src': $fileName" echo "Purging from 'src': $fileName"
cd src cd src
$Script -a $fileName $Script -a $fileName
...@@ -210,6 +210,9 @@ updateMode) ...@@ -210,6 +210,9 @@ updateMode)
$Script -a $fileName $Script -a $fileName
cd .. cd ..
# Just in case, remove the symbolic link as the last step
unlink $filePathAndName
done done
;; ;;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment