Skip to content
Snippets Groups Projects
Commit 9c35ea85 authored by Mark Olesen's avatar Mark Olesen
Browse files

wmakeLnInclude : also remove broken links

parent a307c235
No related branches found
No related tags found
No related merge requests found
...@@ -27,12 +27,13 @@ ...@@ -27,12 +27,13 @@
# wmakeLnInclude # wmakeLnInclude
# #
# Description # Description
# Link all the source files in the $1 directory into $1/lnInclude # Link all the source files in the <dir> directory into <dir>/lnInclude
# #
# Usage: wmakeLnInclude [-f] <dir> [-lnOption] # Usage: wmakeLnInclude [-f] <dir> [-lnOption]
# #
# The desired source files: # The desired source files:
# *.C *.H *.h *.cxx # *.C *.H *.h *.cpp *.cxx *.hpp *.hxx
#
# Avoid # Avoid
# *.c (C source) # *.c (C source)
# .#* (cvs recovered files) # .#* (cvs recovered files)
...@@ -100,6 +101,7 @@ fi ...@@ -100,6 +101,7 @@ fi
if [ -d $incDir ] if [ -d $incDir ]
then then
# could change force to remove lnInclude first
if [ ! "$forceUpdate" ] if [ ! "$forceUpdate" ]
then then
# echo $Script: include directory $incDir already exists, exiting. # echo $Script: include directory $incDir already exists, exiting.
...@@ -129,4 +131,10 @@ find .. $findOpt \ ...@@ -129,4 +131,10 @@ find .. $findOpt \
-a ! -name ".#*" \ -a ! -name ".#*" \
-exec ln $lnOpt {} . \; -exec ln $lnOpt {} . \;
#
# remove any broken links
#
find -L . -type l -exec rm \{\} \;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment