After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595988 - Extend distcheck for files in Git to all files
Extend distcheck for files in Git to all files
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2009-09-22 18:51 UTC by Owen Taylor
Modified: 2009-10-01 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Extend distcheck for files in Git to all files (11.70 KB, patch)
2009-09-22 18:51 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2009-09-22 18:51:35 UTC
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.
Comment 1 Owen Taylor 2009-09-22 18:51:38 UTC
Created attachment 143724 [details] [review]
Extend distcheck for files in Git to all files
Comment 2 Colin Walters 2009-09-30 20:36:32 UTC
Review of attachment 143724 [details] [review]:

::: Makefile.am
@@ +17,3 @@
 	@failed=false; \
+	exclude=`(for p in $(DIST_EXCLUDE) ; do echo --exclude=$$p ; done)`; \
+	for f in `cd $(srcdir) && git ls-files $$exclude` ; do \

Should probably be surrounded in a "test -d .git"

::: a/src/metacity-symbols.c
@@ -8,3 @@
-  return NULL;
-}
-

I'd split this into a separate patch, it's not really related to the distchecking.
Comment 3 Owen Taylor 2009-09-30 21:26:30 UTC
(In reply to comment #2)
> Review of attachment 143724 [details] [review]:
> 
> ::: Makefile.am
> @@ +17,3 @@
>      @failed=false; \
> +    exclude=`(for p in $(DIST_EXCLUDE) ; do echo --exclude=$$p ; done)`; \
> +    for f in `cd $(srcdir) && git ls-files $$exclude` ; do \
> 
> Should probably be surrounded in a "test -d .git"

Executive decision: I don't care about distchecking if you aren't working from  a Git tree.

> ::: a/src/metacity-symbols.c
> @@ -8,3 @@
> -  return NULL;
> -}
> -
> 
> I'd split this into a separate patch, it's not really related to the
> distchecking.

Well, it's related in that once the distcheck hook is there, it no longer distchecks without removing those files. But yeah, it's a bit separate. Split in my local tree now.
Comment 4 Owen Taylor 2009-10-01 19:26:31 UTC
Attachment 143724 [details] pushed as b90fc1e - Extend distcheck for files in Git to all files