Build System: Sort Files For Consistent Comparison

Fixes problem with filenames being listed in different order on
different systems.
This commit is contained in:
David A. Harding 2015-04-23 11:26:35 -04:00
parent 224127f2f0
commit 0adf79eedd
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7

View file

@ -93,6 +93,7 @@ build:
$S export LANG=C.UTF-8 ; bundle exec jekyll build 2>&1 | tee $(JEKYLL_LOG) $S export LANG=C.UTF-8 ; bundle exec jekyll build 2>&1 | tee $(JEKYLL_LOG)
$S grep -r -L 'Note: this file is built non-deterministically' _site/ \ $S grep -r -L 'Note: this file is built non-deterministically' _site/ \
| egrep -v 'sha256sums.txt' \ | egrep -v 'sha256sums.txt' \
| sort \
| xargs sha256sum > _site/sha256sums.txt | xargs sha256sum > _site/sha256sums.txt
## Jekyll annoyingly returns success even when it emits errors and ## Jekyll annoyingly returns success even when it emits errors and