From 54c03c91be0ed0a2dcf9c7a254b78d0661d5e089 Mon Sep 17 00:00:00 2001 From: bluebrother Date: Mon, 7 Apr 2008 17:27:37 +0000 Subject: [PATCH] Fix building the manual on ubuntu (dash issue again). Also, make credits file generation a bit nicer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17020 a1c6a512-1295-4272-9138-f99709370657 --- manual/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/Makefile b/manual/Makefile index 52f6bd58c..7c861deea 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -24,7 +24,7 @@ manual-prep: rockbox.tex @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \; @find * -type f \! -regex '.*\.svn.*' -exec cp -u {} $(OBJDIR)/{} \; @printf "%s%%" $(VERSION) > $(OBJDIR)/version.tex - @perl credits.pl < $(ROOTDIR)/docs/CREDITS > $(OBJDIR)/CREDITS.tex + @perl credits.pl < $(DOCSDIR)/CREDITS > $(OBJDIR)/CREDITS.tex @printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $(OBJDIR)/$(MANFILE).tex @printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $(OBJDIR)/$(MANFILE).tex @printf "\\\\input{rockbox.tex}\n" >> $(OBJDIR)/$(MANFILE).tex @@ -35,8 +35,8 @@ $(OBJDIR)/features: $(ROOTDIR)/apps/features.txt $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ grep -v "^\#" | grep -v "^$$" > $@; \ - for f in `cat $(OBJDIR)/features`; do feat="$$feat\n\\\edef\\UseOption{\\UseOption,$$f}" ; done ; \ - echo -e "$$feat" >$(OBJDIR)/features.tex + for f in `cat $(OBJDIR)/features`; do feat="$$feat\\n\\\\edef\\\\UseOption{\\\\UseOption,$$f}" ; done ; \ + printf "$$feat" >$(OBJDIR)/features.tex manual-pdf: features manual-prep rockbox.tex $(MAKE) -C $(OBJDIR) buildmanual -- 2.11.4.GIT