When building on kubuntu 6.10 the -n option to echo is on by default causing
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Wed, 4 Apr 2007 01:12:44 +0000 (01:12 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Wed, 4 Apr 2007 01:12:44 +0000 (01:12 +0000)
the \ character to be interpreted as an escape. Filtering through tr is one way
around this.

git-svn-id: http://svn.complang.org/ragel/trunk@161 052ea7fc-9027-0410-9066-f65837a77df0

doc/Makefile.in

index 2a9c860..e574302 100644 (file)
@@ -49,8 +49,8 @@ ragel-guide.pdf: $(PDFFIGS) $(INPUT)
        pdflatex -interaction=nonstopmode $< >/dev/null
 
 version.tex: ../version.mk
-       echo '\def\version{$(VERSION)}' > version.tex
-       echo '\def\pubdate{$(PUBDATE)}' >> version.tex
+       echo '|def|version{$(VERSION)}' | tr '|' '\\' > version.tex
+       echo '|def|pubdate{$(PUBDATE)}' | tr '|' '\\' >> version.tex
 
 %.1: %.1.in ../version.mk
        cat $< | sed 's/@PUBDATE@/$(PUBDATE)/' \