AllwmakeParseArguments: Added "-update" option

Updates lnInclude directories and dep files before compilation.  This is
useful to apply following a "git pull" to ensure consistency between the
source files, dep files and links.
This commit is contained in:
Henry Weller
2015-12-14 11:03:16 +00:00
parent 9977d77d91
commit 436c3b92e4

View File

@ -55,6 +55,7 @@ options:
-j Compile using all local cores/hyperthreads -j Compile using all local cores/hyperthreads
-jN or -j N Compile using N cores/hyperthreads -jN or -j N Compile using N cores/hyperthreads
-no-scheduler Compile without wmakeScheduler -no-scheduler Compile without wmakeScheduler
-update Update lnInclude directories and dep files
USAGE USAGE
# Print options for building code documentation # Print options for building code documentation
@ -122,6 +123,11 @@ do
-no-scheduler) -no-scheduler)
unset WM_SCHEDULER unset WM_SCHEDULER
;; ;;
# Update lnInclude directories and dep files following a pull
-update)
wrmdep -update
wmakeLnIncludeAll
;;
# Generate documentation # Generate documentation
doc) doc)
test -n "$genDoc" || usage "invalid option '$1'" test -n "$genDoc" || usage "invalid option '$1'"