diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-30 10:31:48 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-30 10:31:48 +0000 |
commit | 537b90ed3517d198da5c7fa9509c3b04586b1453 (patch) | |
tree | f59282c105332bdc020eb430e35245eb0fca345f /Makefile.common | |
parent | 5b22d18bc48d248d033266709b7e261c3d7957d3 (diff) | |
download | fedora-doc-utils-537b90ed3517d198da5c7fa9509c3b04586b1453.tar.gz fedora-doc-utils-537b90ed3517d198da5c7fa9509c3b04586b1453.tar.xz fedora-doc-utils-537b90ed3517d198da5c7fa9509c3b04586b1453.zip |
When using find(1) to generate the list of candidate files for the
tarball, do not expand the filenames onto the command line, using
"find *" because a filename with an embedded '#" will bork the
remainder of the command line, seriously breaking the build process.
Thanks again, Emacs!
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile.common b/Makefile.common index a2d6f8c..a0a6d84 100644 --- a/Makefile.common +++ b/Makefile.common @@ -332,18 +332,18 @@ $(DOCBASE)-$(VERSION).src.tar.gz:: ${MAKE} kde.desktop ${MAKE} khelp.desktop ${MAKE} omf - mkdir $(DOCBASE)-$(VERSION) - find * '(' \ - -name '.*' \ - -o -name 'CVS' \ - -o -name 'rpm' \ - -o -name '*.rpm' \ - -o -name '#*' \ - -o -name '*~' \ - -o -name '*.tar.gz' \ - -o -name '*.tmp' \ - -o -name '${DOCBASE}-${VERSION}' \ - ')' -prune -o -print | cpio -pamdv $(DOCBASE)-$(VERSION) + ${RM} -r $(DOCBASE)-$(VERSION) + mkdir -p $(DOCBASE)-$(VERSION) + find . '(' \ + -name '*#*' \ + -o -name 'CVS' \ + -o -name 'rpm' \ + -o -name '*.rpm' \ + -o -name '*~' \ + -o -name '*.tar.gz' \ + -o -name '*.tmp' \ + -o -name '${DOCBASE}-${VERSION}' \ + ')' -prune -o -print | tee /tmp/log.files | cpio -pamdv $(DOCBASE)-$(VERSION) tar -zcvf $@ $(DOCBASE)-$(VERSION)/ ${RM} -r $(DOCBASE)-$(VERSION) |