Skip to content

Commit

Permalink
replace grep with checkwhitespace from dmd
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Jul 5, 2015
1 parent 686dd35 commit d339f7d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,12 @@ html_consolidated :
$(DOCSRC)/std_consolidated_footer.html > $(DOC_OUTPUT_DIR)/std_consolidated.html

#################### test for undesired white spaces ##########################
CWS_MAKEFILES = posix.mak win32.mak win64.mak osmodel.mak
NOT_MAKEFILES = $(ALL_D_FILES) $(ALL_C_FILES) index.d
GREP = grep

checkwhitespace:
$(GREP) -n -U -P "([ \t]$$|\r)" $(CWS_MAKEFILES) ; test "$$?" -ne 0
$(GREP) -n -U -P "( $$|\r|\t)" $(NOT_MAKEFILES) ; test "$$?" -ne 0
CWS_TOCHECK = posix.mak win32.mak win64.mak osmodel.mak
CWS_TOCHECK += $(ALL_D_FILES) index.d
CWS_TOCHECK += $(filter-out etc/c/zlib/ChangeLog,$(ALL_C_FILES))

checkwhitespace:
$(HOST_DC) -run ../dmd/src/checkwhitespace.d $(CWS_TOCHECK)

#############################

Expand Down

0 comments on commit d339f7d

Please sign in to comment.