Changeset 94 for trunk/adm


Ignore:
Timestamp:
03/10/10 10:43:56 (14 years ago)
Author:
pinsard
Message:

add man troff output of manuals

Location:
trunk/adm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/guides/makefile

    r93 r94  
    3535DIRTMP = \ 
    3636./ 
     37 
     38DIRDESIGN = \ 
     39./design/ 
    3740 
    3841DIRWWW = \ 
     
    6669all \ 
    6770clean \ 
     71cleantmp \ 
     72design \ 
    6873before \ 
    6974dbkcheck \ 
     75htmllinkcheckb \ 
     76htmllinkchecka \ 
    7077spellcheck \ 
    7178help \ 
     
    98105        -@rm -f $(DIRTMP)/get_sed.xml 
    99106        -@rm -f $(DIRTMP)/firststeps_sed.xml 
     107 
     108design : \ 
     109$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \ 
     110$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg 
     111 
     112htmllinkcheckb : 
     113        @linkchecker.sh -d $(DIRWWW) 
     114 
     115htmllinkchecka : 
     116        @linkchecker.sh -u $(URLPUBLISH) 
    100117 
    101118spellcheck : 
     
    383400        --output $@ \ 
    384401        $< 
     402 
     403$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
     404        @convert $< $@ 
     405 
     406$(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot 
     407        @dot -Tsvg -o $@ $< 
     408 
     409$(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \ 
     410./makefile 
     411        @makeppgraph --graphviz --output=$@ 
  • trunk/adm/makefile

    r93 r94  
    1515# 
    1616# $Id$ 
     17# 
     18# - fplod 20100310T091541Z aedon.locean-ipsl.upmc.fr (Darwin) 
     19#    
     20#   * add man_troff which sheel script possible now with docutils 0.6 
     21#     can be test with 
     22#      $ man -M ../doc//manuals/man bibopa.sh 
    1723# 
    1824# - fplod 2009-05-13T14:08:49Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    6167DIRTMP = \ 
    6268./ 
     69 
     70DIRDESIGN = \ 
     71./design/ 
    6372 
    6473DIRWWW = \ 
     
    132141            -e "s+\.sh+.sh.rst+g") 
    133142 
     143LIST_SRCSH_TROFF = \ 
     144$(shell echo "$(LIST_SRCSH)" | \ 
     145        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 
     146            -e "s+\.sh+.sh.1+g") 
     147 
    134148LIST_SRCSH_HTML = \ 
    135149$(shell echo "$(LIST_SRCSH)" | \ 
     
    140154$(shell echo "$(LIST_SRCSH)" | \ 
    141155        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" -e "s+\.sh+.sh.pdf+g") 
     156 
     157RST2MAN = \ 
     158rst2man.py 
    142159 
    143160RST2HTML = \ 
     
    165182before \ 
    166183clean \ 
     184cleantmp \ 
     185design \ 
    167186htmllinkcheckb \ 
    168187htmllinkchecka \ 
    169188spellcheck \ 
    170189all \ 
    171 html \ 
    172 pdf 
     190man_troff \ 
     191man_html \ 
     192man_html_one \ 
     193man_html_many \ 
     194man_pdf \ 
     195man_pdf_one \ 
     196man_pdf_many 
    173197 
    174198help : 
     
    190214 
    191215before : 
     216        @mkdir -p $(DIRWWW)/manuals/man/man1/ 
    192217        @mkdir -p $(DIRWWW)/manuals/html/one/ 
    193218        @mkdir -p $(DIRWWW)/manuals/html/many/ 
     
    217242        -@rm -f $(DIRWWW)/manuals/pdf/many/*.out 
    218243 
     244design : \ 
     245$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \ 
     246$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg 
     247 
    219248htmllinkcheckb : 
    220249        @linkchecker.sh -d $(DIRWWW)/manuals/html/ 
     
    228257 
    229258all : \ 
     259man_troff \ 
    230260man_html \ 
    231261man_pdf 
     262 
     263man_troff : \ 
     264$(LIST_SRCSH_TROFF) 
    232265 
    233266man_html : \ 
     
    363396        @for file in $(LIST_SRCPHP); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@ 
    364397 
     398$(DIRWWW)/manuals/man/man1/%.1:$(DIRTMP)/%.rst 
     399        @$(RST2MAN) --input-encoding=ISO-8859-15 --strict \ 
     400        $< $@ 
     401 
    365402$(DIRWWW)/manuals/html/many/%.html:$(DIRTMP)/%.rst 
    366403        @$(RST2HTML) --input-encoding=ISO-8859-15 --strict \ 
     
    384421        @$(DIRADM)/extract_rst.sh -i $< -l php -o $@ 
    385422 
     423$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
     424        @convert $< $@ 
     425 
     426$(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot 
     427        @dot -Tsvg -o $@ $< 
     428 
     429$(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \ 
     430./makefile 
     431        @makeppgraph --graphviz --output=$@ 
Note: See TracChangeset for help on using the changeset viewer.