[Casa-framework] couple of doc helper targets

Raymond Rusk Raymond.Rusk at nrc-cnrc.gc.ca
Fri Dec 8 16:31:51 EST 2006


On Mon, 20 Nov 2006, Wes Young wrote:

> Greetings,
>
> I just checked in a couple of helper targets to let you check how
> well your documentation builds from the xml file. If for example you
> are in xmlcasa/implement/synthesis and want to build the pdf for
> imager, type
>
> gmake imager.pdf

Hi Wes,

When I try this I get the following error messages.  Can you see the 
problem?

[aips2mgr at mekbuda images]$ gmake image.pdf
  image.latex
(1st pass)...
/bin/sh: ./image.latex: Permission denied
(2nd pass)...
/bin/sh: ./image.latex: Permission denied
(3rd pass)...
/bin/sh: ./image.latex: Permission denied
gmake: [image.pdf] Error 126 (ignored)
[aips2mgr at mekbuda images]$ pwd
/aips++/svn/casa/framework/code/xmlcasa/implement/images
[aips2mgr at mekbuda images]$ gmake -n image.pdf
trap "rm -f /aips++/svn/casa/framework/linux_gnu/tmp/imagegcode" 1 2 3 15 
; \
amkdir pdf_files ;\
         cat /aips++/svn/casa/framework/code/install/docutils/tmpheader4tex
>  pdf_files/image.latex; \
TEXINPUTS=.:/aips++/svn/casa/framework/code/doc/texinputs.dir:/usr/share/texmf/tex//:/usr/share/texmf/source//:/usr/texinputs 
;\
xsltproc /aips++/svn/casa/framework/code/xmlcasa/install/casa2latex.xsl 
/aips++/svn/casa/framework/code/xmlcasa/implement/images/image.xml | sed 
-e "s/<?xml version.*//" | awk -f 
/aips++/svn/casa/framework/code/install/docutils/xml2latex.awk >> 
pdf_files/image.latex; \
cat /aips++/svn/casa/framework/code/install/docutils/tmptail4tex >> 
pdf_files/image.latex; \
cd pdf_files ; \
echo " image.latex" ; \
echo "(1st pass)..." ; \
  image.latex; \
echo "(2nd pass)..." ; \
  image.latex; \
echo "(3rd pass)..." ; \
  image.latex

Raymond

>
> for html
>
> gmake imager.html
>
> the resulting output goes into a subdirectory called pdf_files and
> htmlfiles respectively. These directories can be rather cluttered!
> Let me know if there are any issues. I'm going to work on cleaning up
> the html as well as making the links work a bit better.
>
> Please note, if you want to put in figures, postscript doesn't work
> with pdflatex, you need to make gif's or jpegs.
>
> wes
> wyoung at aoc.nrao.edu
>
>
> _______________________________________________
> Casa-framework mailing list
> Casa-framework at donar.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
>

-- 
Dr. Raymond Rusk                                        Dr. Raymond Rusk
ALMA Software Engineer                           Ingenieur Logiciel ALMA
National Research Council Canada   Conseil national de recherches Canada
Herzberg Institute of Astrophysics   L'Institut Herzberg d'Astrophysique
DRAO, P.O. Box 248                                    OFRA, B.P. Box 248
Penticton, BC V2A 6J9           |\^/|         Penticton, (C.-B.) V2A 6J9
Government of Canada         _|\|   |/|_          Gouvernement du Canada
Tel: (250)490-4347           >         <              Tel: (250)490-4347
Fax: (250)493-7767            >_./|\._<               Fax: (250)493-7767
Raymond.Rusk at nrc-cnrc.gc.ca                  Raymond.Rusk at nrc-cnrc.gc.ca


More information about the Casa-framework mailing list