# HG changeset patch # User Simon Josefsson # Date 1271927061 -7200 # Node ID 51e653bb55dd6afa37f9f9f73f7cd38511e9d2ba # Parent 4a27549ddb0e519adc8b62685e39be5ec2f7912b top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-22 Simon Josefsson + + * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in + backup files. + 2010-04-21 Simon Josefsson * tests/test-vasprintf.c: Test %08lx. diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -645,6 +645,12 @@ halt='found useless parentheses in cpp directive' \ $(_sc_search_regexp) +# Prohibit checked in backup files. +sc_prohibit_backup_files: + @$(VC_LIST) | grep '~$$' && \ + { echo '$(ME): found version controlled backup file' 1>&2; \ + exit 1; } || : + # Require the latest GPL. sc_GPL_version: @prohibit='either ''version [^3]' \