changeset 12767:941bc7981053

maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works from a non-srcdir build.
author Jiri Denemark <jdenemar@redhat.com>
date Thu, 21 Jan 2010 14:23:17 +0100
parents 2c14f1e449e5
children f12919d53a60
files ChangeLog top/maint.mk
diffstat 2 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
+
+	maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
+	* top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
+	$(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
+	from a non-srcdir build.
+
 2010-01-20  Eric Blake  <ebb9@byu.net>
 
 	warn-on-use: use instead of link-warning
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -41,9 +41,11 @@
 VC_LIST_ALWAYS_EXCLUDE_REGEX ?= ^$$
 
 VC_LIST_EXCEPT = \
-  $(VC_LIST) | if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \
-	       else grep -Ev -e "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi \
-	| grep -Ev -e '$(VC_LIST_ALWAYS_EXCLUDE_REGEX)'
+  $(VC_LIST) | sed 's|^$(srcdir)/||' \
+	| if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \
+	  else grep -Ev -e "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi \
+	| grep -Ev -e '$(VC_LIST_ALWAYS_EXCLUDE_REGEX)' \
+	| sed 's|^|$(srcdir)/|'
 
 ifeq ($(origin prev_version_file), undefined)
   prev_version_file = $(srcdir)/.prev-version