Re: [rfbproto] [PATCH] Add Makefile
On Thu, 11 Jun 2009 10:07:01 +0200 Peter Rosin wrote: > > Hi Pierre, > > Sorry for the delay, I was on vacation... > > That works for me (if you lose the trailing newline in rsttool :-) > Will do. ;) Rgds -- Pierre OssmanOpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio ABWeb: http://www.cendio.com signature.asc Description: PGP signature -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto
Re: [rfbproto] [PATCH] Add Makefile
Den 2009-06-04 11:23 skrev Pierre Ossman: > On Mon, 1 Jun 2009 14:30:55 +0200 > Pierre Ossman wrote: > >> On Mon, 01 Jun 2009 13:17:17 +0200 >> Peter Rosin wrote: >> >>> Those are spelled rst2newlatex.py and rst2html.py on my system. >>> What are their canonical names? >>> >> Upstream uses the .py suffix. Annoying... >> >> I guess we need to do something clever here. >> > > How about this: Hi Pierre, Sorry for the delay, I was on vacation... That works for me (if you lose the trailing newline in rsttool :-) Cheers, Peter -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto
Re: [rfbproto] [PATCH] Add Makefile
On Mon, 1 Jun 2009 14:30:55 +0200 Pierre Ossman wrote: > On Mon, 01 Jun 2009 13:17:17 +0200 > Peter Rosin wrote: > > > > > Those are spelled rst2newlatex.py and rst2html.py on my system. > > What are their canonical names? > > > > Upstream uses the .py suffix. Annoying... > > I guess we need to do something clever here. > How about this: Index: rsttool === --- rsttool (revision 0) +++ rsttool (revision 0) @@ -0,0 +1,28 @@ +#!/bin/bash +# +# This is a small wrapper to work around the fact that the +# docutils tools are named differently in different distributions. +# + +if [ $# -lt 1 ]; then + echo "Syntax:" + echo "$0 [args...]" + exit 1 +fi + +TOOL="$1" +shift + +# Upstream name +if type -t "$TOOL.py" > /dev/null; then + exec "$TOOL.py" "$@" +fi + +# "Santised" name +if type -t "$TOOL" > /dev/null; then + exec "$TOOL" "$@" +fi + +echo docutils tool $TOOL could not be found +exit 1 + Property changes on: rsttool ___ Added: svn:executable + * Index: Makefile === --- Makefile(revision 0) +++ Makefile(revision 0) @@ -0,0 +1,14 @@ +all: rfbproto.pdf rfbproto.html + +.SUFFIXES : .rst .pdf .html + +.rst.pdf: + mkdir -p tmp + ./rsttool rst2newlatex "$<" tmp/tmp.tex + (cd tmp; pdflatex tmp.tex) + # We need to run it twice for links and TOC to work + (cd tmp; pdflatex tmp.tex) + mv tmp/tmp.pdf "$@" + +.rst.html: + ./rsttool rst2html "$<" "$@" -- Pierre OssmanOpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio ABWeb: http://www.cendio.com signature.asc Description: PGP signature -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto
Re: [rfbproto] [PATCH] Add Makefile
On Mon, 01 Jun 2009 13:17:17 +0200 Peter Rosin wrote: > > Those are spelled rst2newlatex.py and rst2html.py on my system. > What are their canonical names? > Upstream uses the .py suffix. Annoying... I guess we need to do something clever here. Rgds -- Pierre OssmanOpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio ABWeb: http://www.cendio.com signature.asc Description: PGP signature -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto
Re: [rfbproto] [PATCH] Add Makefile
Den 2009-06-01 12:55 skrev Pierre Ossman: > Targets for generating a PDF and a HTML page. > > Signed-off-by: Pierre Ossman > --- > > Index: Makefile > === > --- Makefile (revision 0) > +++ Makefile (revision 0) > @@ -0,0 +1,14 @@ > +all: rfbproto.pdf rfbproto.html > + > +.SUFFIXES : .rst .pdf .html > + > +.rst.pdf: > + mkdir -p tmp > + rst2newlatex "$<" tmp/tmp.tex > + (cd tmp; pdflatex tmp.tex) > + # We need to run it twice for links and TOC to work > + (cd tmp; pdflatex tmp.tex) > + mv tmp/tmp.pdf "$@" > + > +.rst.html: > + rst2html "$<" "$@" Those are spelled rst2newlatex.py and rst2html.py on my system. What are their canonical names? Cheers, Peter -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto
[rfbproto] [PATCH] Add Makefile
Targets for generating a PDF and a HTML page. Signed-off-by: Pierre Ossman --- Index: Makefile === --- Makefile(revision 0) +++ Makefile(revision 0) @@ -0,0 +1,14 @@ +all: rfbproto.pdf rfbproto.html + +.SUFFIXES : .rst .pdf .html + +.rst.pdf: + mkdir -p tmp + rst2newlatex "$<" tmp/tmp.tex + (cd tmp; pdflatex tmp.tex) + # We need to run it twice for links and TOC to work + (cd tmp; pdflatex tmp.tex) + mv tmp/tmp.pdf "$@" + +.rst.html: + rst2html "$<" "$@" -- Pierre OssmanOpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio ABWeb: http://www.cendio.com signature.asc Description: PGP signature -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ tigervnc-rfbproto mailing list tigervnc-rfbproto@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto