From cc50ebc4df0aeec9cd7fa75719e70bab73272a9e Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 29 Jul 2010 06:25:57 +0000 Subject: [PATCH] Fix $Id$ vcs keywords. - Add a new svn-keywords target to fix missing properties; - Add a new svn-keywords-check target to locate files lacking $Id$ statement. --- Makefile.am | 12 ++++++++++++ examples/Makefile.am | 2 ++ libfreefare/Makefile.am | 1 + 3 files changed, 15 insertions(+) diff --git a/Makefile.am b/Makefile.am index b294cb9..d2dec11 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ +# $Id$ ACLOCAL_AMFLAGS = -I m4 @@ -25,3 +26,14 @@ clean-local: clean-local-coverage .PHONY: clean-local-coverage clean-local-coverage: -rm -rf coverage + +SVN_KEYWORDS_FILES_LIST_CMD = find $(top_srcdir) -name '*.[hc]' -a ! -name config.h \ + -o -name Makefile.am +svn-keywords: + @echo Update files svn:keywords... + @$(SVN_KEYWORDS_FILES_LIST_CMD) | xargs svn propset -q svn:keywords Id + $(MAKE) svn-keywords-check + +svn-keywords-check: + @echo Files missing a '$$Id$$' vcs keyword: + @$(SVN_KEYWORDS_FILES_LIST_CMD) | xargs grep -L '\$$Id[^$$]*\$$' diff --git a/examples/Makefile.am b/examples/Makefile.am index 15dcc43..3e9aabb 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,3 +1,5 @@ +# $Id$ + AM_CFLAGS = -I. -I$(top_srcdir)/libfreefare @LIBNFC_CFLAGS@ AM_LDFLAGS = @LIBNFC_LIBS@ diff --git a/libfreefare/Makefile.am b/libfreefare/Makefile.am index ee0b4a9..4bee080 100644 --- a/libfreefare/Makefile.am +++ b/libfreefare/Makefile.am @@ -1,3 +1,4 @@ +# $Id$ AM_CFLAGS = @LIBNFC_CFLAGS@ AM_LDFLAGS = @LIBNFC_LIBS@