corrade-nucleus-nucleons – Blame information for rev 24
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | echo "Post-build git status check..." |
2 | echo "Ensuring no changes visible to git have been made to '$*' ..." |
||
3 | |||
4 | git status $* | egrep -q 'nothing to commit.*working (directory|tree) clean' || { |
||
5 | # we should find nothing to commit. If we don't, build has failed. |
||
6 | echo "ERROR: Post-build git status check - FAILED." |
||
7 | echo "Git status reported changes to non-git-ignore'd files." |
||
8 | echo "TO REPRO: Run 'git status $*'. The use git gui or git diff to see what was changed during the build." |
||
9 | echo "TO FIX: Amend your commit and rebuild. Repeat until git status reports no changes both before and after the build." |
||
10 | echo "OUTPUT FOR 'git status $*':" |
||
11 | git status $* |
||
12 | echo "." |
||
13 | echo "OUTPUT FOR 'git diff $*':" |
||
14 | git diff $* | cat -t -e |
||
15 | exit 1 |
||
16 | } |
||
17 | echo "Post-build git status check - Succeeded." |
||
18 | exit 0 |