wrmdep: Update documentation

This commit is contained in:
Henry Weller
2015-12-13 21:23:04 +00:00
parent f56a738f14
commit fe1dc82e5a

View File

@ -39,13 +39,14 @@
# #
# [-o | -old] [dir1 .. dirN]: # [-o | -old] [dir1 .. dirN]:
# Remove *.dep files that are without a corresponding .C or .L source file. # Remove *.dep files that are without a corresponding .C or .L source file.
# This often occurs when a directory has been moved. # This occurs when a directory has been moved.
# - print questionable directory and the *.dep file # - prints the questionable directory and *.dep file
# #
# -update: # -update:
# Search all the "src" and "application" directories of the project for # Search all the "src" and "application" directories of the project for
# broken symbolic links for source code files and then remove all .dep # broken symbolic links for source code files and then remove all .dep
# files that relate to files that no longer exist. # files that relate to files that no longer exist.
# Must be executed in the project top-level directory: $WM_PROJECT_DIR.
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
Script=${0##*/} Script=${0##*/}
@ -68,17 +69,17 @@ Usage:
$Script [-o | -old] [dir1 .. dirN] $Script [-o | -old] [dir1 .. dirN]
Remove *.dep files that are without a corresponding .C or .L file. Remove *.dep files that are without a corresponding .C or .L file.
This often occurs when a directory has been moved. This occurs when a directory has been moved.
- print questionable directory and file - prints the questionable directory and *.dep file
Note: For removing empty source code folders, run: wclean rmdir Note: to remove empty directories, run: wclean empty
$Script -update $Script -update
Search all the "src" and "application" directories of the project for Search all the "src" and "application" directories of the project for
broken symbolic links for source code files and then remove all .dep broken symbolic links for source code files and then remove all .dep
files that relate to files that no longer exist. files that relate to files that no longer exist.
Must be executed in main project source code folder: $WM_PROJECT_DIR Must be executed in the project top-level directory: $WM_PROJECT_DIR
USAGE USAGE
exit 1 exit 1
@ -189,7 +190,7 @@ oldFolders)
updateMode) updateMode)
[ -d bin -a -d src ] || usage "not in the project top level directory" [ -d bin -a -d src ] || 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 \