Skip to content

Commit

Permalink
Merge pull request #129 from Cyan4973/revert-128-remove-trailing-whit…
Browse files Browse the repository at this point in the history
…espace

Revert "Remove trailing whitespace with a check/test."
  • Loading branch information
Cyan4973 authored Mar 19, 2018
2 parents f5e69ee + a2558db commit 7b0e264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,12 @@ preview-man: clean-man man
man ./xxhsum.1

test-all: clean all namespaceTest test test32 test-xxhsum-c clean-xxhsum-c \
armtest clangtest gpptest c90test test-mem usan staticAnalyze \
trailingWhitespace
armtest clangtest gpptest c90test test-mem usan staticAnalyze

.PHONY: listL120
listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (note : $$, for Makefile compatibility)
find . -type f -name '*.c' -o -name '*.h' | while read -r filename; do awk 'length > 120 {print FILENAME "(" FNR "): " $$0}' $$filename; done

.PHONY: trailingWhitespace
trailingWhitespace:
! grep -E "`printf '[ \\t]$$'`" *.1 *.c *.h *.md LICENSE Makefile cmake_unofficial/*

.PHONY: clean
clean: clean-xxhsum-c
@$(RM) core *.o libxxhash.*
Expand Down
4 changes: 2 additions & 2 deletions xxhsum.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ xxhsum(1) -- print or check xxHash non-cryptographic checksums
SYNOPSIS
--------

`xxhsum [<OPTION>] ... [<FILE>] ...`
`xxhsum [<OPTION>] ... [<FILE>] ...`
`xxhsum -b [<OPTION>] ...`

`xxh32sum` is equivalent to `xxhsum -H0`
`xxh32sum` is equivalent to `xxhsum -H0`
`xxh64sum` is equivalent to `xxhsum -H1`


Expand Down

0 comments on commit 7b0e264

Please sign in to comment.