From: Simon Josefsson Date: Thu, 22 Apr 2010 09:04:21 +0000 (+0200) Subject: top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files. X-Git-Tag: v0.1~4234 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=573cefee88f6e45bb3d8f7cd363ad5c99b5276ba;p=gnulib.git top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files. --- 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]' \