From 573cefee88f6e45bb3d8f7cd363ad5c99b5276ba Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 22 Apr 2010 11:04:21 +0200 Subject: [PATCH] top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files. --- ChangeLog | 5 +++++ top/maint.mk | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 64948d704..3f7a7260b 100644 --- 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 index f646e4376..33803f325 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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]' \ -- 2.11.0