top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files.
authorSimon Josefsson <simon@josefsson.org>
Thu, 22 Apr 2010 09:04:21 +0000 (11:04 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 22 Apr 2010 09:04:21 +0000 (11:04 +0200)
ChangeLog
top/maint.mk

index 64948d7..3f7a726 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
+       backup files.
+
 2010-04-21  Simon Josefsson  <simon@josefsson.org>
 
        * tests/test-vasprintf.c: Test %08lx.
index f646e43..33803f3 100644 (file)
@@ -645,6 +645,12 @@ sc_useless_cpp_parens:
        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]'                               \