Changeset 31 for trunk/adm


Ignore:
Timestamp:
01/24/11 17:50:19 (13 years ago)
Author:
pinsard
Message:

improve rest headers thanks to sphinx update (1.0.4 to 1.0.7)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r30 r31  
    2222# EVOLUTIONS 
    2323# ========== 
     24# 
     25# - fplod 20110110T165518Z aedon.locean-ipsl.upmc.fr (Darwin) 
     26# 
     27#   * add odv files 
    2428# 
    2529# - fplod 20110106T135021Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    117121        sed -e "s+$(DIRSRC)/test/+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \ 
    118122            -e "s+\.jnl+.jnl.rst+g") 
     123 
     124LIST_SRCODV = \ 
     125$(DIRSRC)/test/read.cmd 
     126 
     127LIST_SRCODV_RST = \ 
     128$(shell echo "$(LIST_SRCODV)" | \ 
     129        sed -e "s+$(DIRSRC)/test/+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \ 
     130            -e "s+\.cmd+.cmd.rst+g") 
    119131 
    120132LIST_SRCPYTHON = \ 
     
    228240$(LIST_SRCMATLAB_RST) \ 
    229241$(LIST_SRCFERRET_RST) \ 
     242$(LIST_SRCODV_RST) \ 
    230243$(LIST_SRCPYTHON) 
    231244        @sphinx-build -b man -c $(DIRADM)/sphinx \ 
     
    251264$(LIST_SRCMATLAB_RST) \ 
    252265$(LIST_SRCFERRET_RST) \ 
     266$(LIST_SRCODV_RST) \ 
    253267$(LIST_SRCPYTHON) 
    254268        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/ 
     
    274288$(LIST_SRCMATLAB_RST) \ 
    275289$(LIST_SRCFERRET_RST) \ 
     290$(LIST_SRCODV_RST) \ 
    276291$(LIST_SRCPYTHON) 
    277292        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/ 
     
    299314$(LIST_SRCMATLAB_RST) \ 
    300315$(LIST_SRCFERRET_RST) \ 
     316$(LIST_SRCODV_RST) \ 
    301317$(LIST_SRCPYTHONS) 
    302318        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/ 
     
    369385        done >> $@ 
    370386        @echo " " >> $@ 
     387        @echo "ODV scripts" >> $@ 
     388        @echo "ODV scripts" | tr [:print:] = >> $@ 
     389        @echo ".. toctree::" >> $@ 
     390        @echo "   :maxdepth: 1" 1>> $@ 
     391        @echo "   :glob:" 1>> $@ 
     392        @echo " " >> $@ 
     393        @for file in $(LIST_SRCODV); \ 
     394        do \ 
     395           echo "   manuals/$$(basename $${file})"; \ 
     396        done >> $@ 
     397        @echo " " >> $@ 
    371398        @echo "PYTHON scripts" >> $@ 
    372399        @echo "PYTHON scripts" | tr [:print:] = >> $@ 
     
    405432        @$(DIRADM)/extract_rst.sh -i $< -l ferret -o $@ 
    406433 
     434$(DIRTMP)/sphinx_tmpdir/manuals/%.cmd.rst : $(DIRSRC)/test/%.cmd  $(DIRADM)/extract_rst.sh 
     435        @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 
     436 
    407437$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
    408438        @convert $< $@ 
Note: See TracChangeset for help on using the changeset viewer.