Revision aba8e906508bfd21692f4546a66e30524e535e6f authored by Tony Kelman on 26 January 2016, 07:17:06 UTC, committed by Tony Kelman on 26 January 2016, 07:20:09 UTC
This reverts commit dfba26bde58b9b9fae66001b136c67391243c394. This is a detail of the out of tree builds which only exist on master. Any backport that relies on this was not resolved correctly for release-0.4.
1 parent 57fc0bc
check-whitespace.sh
#!/usr/bin/env bash
# This file is a part of Julia. License is MIT: http://julialang.org/license
# Check for trailing white space in source files;
# report an error if so
# Files to check:
file_patterns='
*.1
*.c
*.cpp
*.h
*.jl
*.lsp
*.scm
*.inc
*.make
*.md
*.rst
*.sh
*.yml
*Makefile
'
# TODO: Look also for trailing empty lines, and missing '\n' after the last line
if git --no-pager grep --color -n --full-name -e ' $' -- $file_patterns; then
echo "Error: trailing whitespace found in source file(s)"
echo ""
echo "This can often be fixed with:"
echo " git rebase --whitespace=fix HEAD~1"
echo "or"
echo " git rebase --whitespace=fix master"
echo "and then a forced push of the correct branch"
exit 1
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...