[gnome-shell/nbtk-introduction] Extend distcheck for files in Git to all files



commit 431f299756cf417bfa984e4b2effc678e9821fb3
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Sep 18 16:13:30 2009 -0400

    Extend distcheck for files in Git to all files
    
    Instead of just checking that we distribute all Javascript files, check
    that we distribute everything that is in Git.
    
    The toplevel Makefile.am has a variable DIST_EXCLUDE that lists patterns
    of files that we actually don't want to distribute.
    
    Remove several stale C files that we are no longer using.

 Makefile.am              |   15 +++-
 src/metacity-symbols.c   |   64 ------------
 src/shell-panel-window.c |  240 ----------------------------------------------
 src/shell-panel-window.h |   35 -------
 4 files changed, 12 insertions(+), 342 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 259c030..a0bc15a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,12 +2,21 @@ SUBDIRS = data js src tests po
 
 EXTRA_DIST =		\
 	.project	\
-	.settings
+	.settings	\
+	autogen.sh
+
+# These are files checked into Git that we don't want to distribute
+DIST_EXCLUDE =					\
+	.gitignore				\
+	gnome-shell.doap			\
+	MAINTAINERS				\
+	tools/build/*
 
 distcheck-hook:
-	@echo "Checking disted javascript against files in git"
+	@echo "Checking disted files against files in git"
 	@failed=false; \
-	for f in `cd $(srcdir) && git ls-files js` ; do \
+	exclude=`(for p in $(DIST_EXCLUDE) ; do echo --exclude=$$p ; done)`; \
+	for f in `cd $(srcdir) && git ls-files $$exclude` ; do \
 		if ! test -e $(distdir)/$$f ; then \
 			echo File missing from distribution: $$f ; \
 			failed=true ; \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]