* [PATCH] Fix media_build file matching
@ 2011-01-17 12:21 Hans Verkuil
2011-01-17 13:15 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2011-01-17 12:21 UTC (permalink / raw)
To: linux-media; +Cc: Mauro Carvalho Chehab
Hi Mauro,
Can you apply this patch to the media_build tree? It quotes the *.[ch] file
pattern used by find.
When I was experimenting with the media_build tree and trying
'make tar DIR=<git repo>' I kept ending up with just one source in my tar
archive. I couldn't for the life of me understand what was going on until
I realized that I had a copy of a media driver source in the top dir of my
git repository. Because the file pattern was not quoted it would expand to
that particular source and match only that one.
It took me a surprisingly long time before I figured this out :-(
Quoting the pattern fixes this.
Regards,
Hans
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
diff --git a/linux/Makefile b/linux/Makefile
index 8bbeee8..d731f61 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -58,7 +58,7 @@ todaytar:
tar rvf $(PWD)/linux-media.tar git_log
for i in $(TARDIR); do \
if [ "`echo $$i|grep Documentation`" = "" ]; then \
- dir="`(cd $(DIR); find $$i -type f -name *.[ch])`"; \
+ dir="`(cd $(DIR); find $$i -type f -name '*.[ch]')`"; \
dir="$$dir `(cd $(DIR); find $$i -type f -name Makefile)`"; \
dir="$$dir `(cd $(DIR); find $$i -type f -name Kconfig)`"; \
tar rvf $(PWD)/$(TODAY_TAR) -C $(DIR) $$dir; \
@@ -75,7 +75,7 @@ tar:
tar rvf $(PWD)/linux-media.tar git_log
for i in $(TARDIR); do \
if [ "`echo $$i|grep Documentation`" = "" ]; then \
- dir="`(cd $(DIR); find $$i -type f -name *.[ch])`"; \
+ dir="`(cd $(DIR); find $$i -type f -name '*.[ch]')`"; \
dir="$$dir `(cd $(DIR); find $$i -type f -name Makefile)`"; \
dir="$$dir `(cd $(DIR); find $$i -type f -name Kconfig)`"; \
tar rvf $(PWD)/linux-media.tar -C $(DIR) $$dir; \
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix media_build file matching
2011-01-17 12:21 [PATCH] Fix media_build file matching Hans Verkuil
@ 2011-01-17 13:15 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2011-01-17 13:15 UTC (permalink / raw)
To: Hans Verkuil; +Cc: linux-media
Em 17-01-2011 10:21, Hans Verkuil escreveu:
> Hi Mauro,
>
> Can you apply this patch to the media_build tree? It quotes the *.[ch] file
> pattern used by find.
>
> When I was experimenting with the media_build tree and trying
> 'make tar DIR=<git repo>' I kept ending up with just one source in my tar
> archive. I couldn't for the life of me understand what was going on until
> I realized that I had a copy of a media driver source in the top dir of my
> git repository. Because the file pattern was not quoted it would expand to
> that particular source and match only that one.
>
> It took me a surprisingly long time before I figured this out :-(
>
> Quoting the pattern fixes this.
Applied, thanks!
Cheers,
Mauro
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-17 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 12:21 [PATCH] Fix media_build file matching Hans Verkuil
2011-01-17 13:15 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox