Make sure to not copy special .svn files when preparing to build the manual.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12013 a1c6a512-1295-4272-9138-f99709370657
diff --git a/manual/Makefile b/manual/Makefile
index 17964fa..8a8b7c8 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -1,3 +1,12 @@
+#             __________               __   ___.
+#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
+#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
+#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
+#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
+#                     \/            \/     \/    \/            \/
+# $Id:$
+#
+
 .PHONY: all buildmanual clean
 
 all: manual-pdf 
@@ -5,7 +14,8 @@
 manual-prep: rockbox.tex
 	@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
 	@mkdir -p $(OBJDIR)
-	@cp -R * $(OBJDIR)
+	@find * -type d \! -regex '.*\.svn.*' | xargs -i mkdir -p $(OBJDIR)/{}
+	@find * -type f \! -regex '.*\.svn.*' | xargs -i cp {} $(OBJDIR)/{}
 	@perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
 	@echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
 	@echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex