double_semicolon_test revision 6ad1f2da4055e2cfe9bf8c79b79e408dba171691
199767f8919635c4928607450d9e0abb932109ceToomas Soome# An AWK regex matching tracked file paths to be included for the search.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Example: '.*\.po|README'
199767f8919635c4928607450d9e0abb932109ceToomas Soomeif [ ! -d "$GIT_DIR" ]; then
199767f8919635c4928607450d9e0abb932109ceToomas Soome echo "Git repository is required for this test!" 1>&2
199767f8919635c4928607450d9e0abb932109ceToomas Soome # Look for lines with double semicolon at the end of line
199767f8919635c4928607450d9e0abb932109ceToomas Soome git grep -n -I ';\s*;$' -- "$(git rev-parse --show-toplevel)" ||
199767f8919635c4928607450d9e0abb932109ceToomas Soome # Don't fail if no such lines were found anywhere
199767f8919635c4928607450d9e0abb932109ceToomas Soome [[ $? == 1 ]]
199767f8919635c4928607450d9e0abb932109ceToomas Soome if (!found) {
199767f8919635c4928607450d9e0abb932109ceToomas Soome print \"Double semicolon found:\"