Changeset 80


Ignore:
Timestamp:
10/30/08 10:10:11 (16 years ago)
Author:
pinsard
Message:

add journals and bug fixes in flat to docbook conversion tool

Location:
trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r76 r80  
    1717# ++ amélioration de la page index 
    1818# 
    19 # ++ faire un livre avec tout 
    20 # 
    2119# EVOLUTIONS 
    2220# ========== 
     
    2422# $Id$ 
    2523# 
     24# - fplod 2008-10-28T10:59:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     25# 
     26#   * add newpage directive  
     27#     (thanks to http://docutils.sourceforge.net/docs/user/latex.html) 
     28# 
    2629# - fplod 2008-09-17T09:16:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2730#   * add xsl files 
     
    3740# .. _extract_rst.sh: ../extract_rst.sh.html 
    3841# 
    39 # docutils ++ lien 
    40 # 
    4142#+ 
    4243# 
    4344PRODUCT = \ 
    4445superbib 
     46 
     47PRODUCTNAME = \ 
     48$$(echo $(PRODUCT) | tr -s [:lower:] [:upper:]) 
    4549 
    4650DIRBASE = \ 
     
    117121before : 
    118122        @before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -mono -l en 
     123        @mkdir -p $(DIRWWW)/manuals/html/ 
     124        @mkdir -p $(DIRWWW)/manuals/pdf/ 
    119125 
    120126install : 
     
    123129clean : 
    124130        -@rm -fr $(DIRWWW)/ 
     131        -@rm -fr $(DIRWWW)/manuals/html/ 
     132        -@rm -fr $(DIRWWW)/manuals/pdf 
    125133        -@rm -f $(DIRTMP)/all.xml 
    126134        -@rm -f $(DIRTMP)/*.rst 
     135        -@rm -f $(DIRTMP)/*.rst[12] 
     136        -@rm -f $(DIRTMP)/links.rst* 
    127137        -@rm -f $(DIRTMP)/*.tex 
    128138        -@rm -f $(DIRTMP)/*.aux 
     
    145155 
    146156man_html : \ 
    147 $(DIRWWW)/index.html \ 
    148 $(DIRWWW)/before.sh.html \ 
    149 $(DIRWWW)/linkchecker.sh.html \ 
    150 $(DIRWWW)/mailtouser.sh.html \ 
    151 $(DIRWWW)/twindoi.sh.html \ 
    152 $(DIRWWW)/install.sh.html \ 
    153 $(DIRWWW)/bibopa.sh.html \ 
    154 $(DIRWWW)/components_db.xsl.html \ 
    155 $(DIRWWW)/form_db.xsl.html \ 
    156 $(DIRWWW)/main_html.xsl.html \ 
    157 $(DIRWWW)/message_lang.xsl.html \ 
    158 $(DIRWWW)/superbib01_xml.xsl.html \ 
    159 $(DIRWWW)/superbib02_html.xsl.html \ 
    160 $(DIRWWW)/superbib02_xml.xsl.html \ 
    161 $(DIRWWW)/superbibmany01_html.xsl.html \ 
    162 $(DIRWWW)/superbibmany01_xml.xsl.html \ 
    163 $(DIRWWW)/superbibmany02_html.xsl.html \ 
    164 $(DIRWWW)/superbibmany02_xml.xsl.html \ 
    165 $(DIRWWW)/template_db.xsl.html \ 
    166 $(DIRWWW)/user_db.xsl.html \ 
    167 $(DIRWWW)/user_html.xsl.html \ 
    168 $(DIRWWW)/timestamp.php.html 
     157$(DIRWWW)/manuals/html/index.html \ 
     158$(DIRWWW)/manuals/html/before.sh.html \ 
     159$(DIRWWW)/manuals/html/linkchecker.sh.html \ 
     160$(DIRWWW)/manuals/html/mailtouser.sh.html \ 
     161$(DIRWWW)/manuals/html/twindoi.sh.html \ 
     162$(DIRWWW)/manuals/html/install.sh.html \ 
     163$(DIRWWW)/manuals/html/bibopa.sh.html \ 
     164$(DIRWWW)/manuals/html/components_db.xsl.html \ 
     165$(DIRWWW)/manuals/html/form_db.xsl.html \ 
     166$(DIRWWW)/manuals/html/main_html.xsl.html \ 
     167$(DIRWWW)/manuals/html/message_lang.xsl.html \ 
     168$(DIRWWW)/manuals/html/superbib01_xml.xsl.html \ 
     169$(DIRWWW)/manuals/html/superbib02_html.xsl.html \ 
     170$(DIRWWW)/manuals/html/superbib02_xml.xsl.html \ 
     171$(DIRWWW)/manuals/html/superbibmany01_html.xsl.html \ 
     172$(DIRWWW)/manuals/html/superbibmany01_xml.xsl.html \ 
     173$(DIRWWW)/manuals/html/superbibmany02_html.xsl.html \ 
     174$(DIRWWW)/manuals/html/superbibmany02_xml.xsl.html \ 
     175$(DIRWWW)/manuals/html/template_db.xsl.html \ 
     176$(DIRWWW)/manuals/html/user_db.xsl.html \ 
     177$(DIRWWW)/manuals/html/user_html.xsl.html \ 
     178$(DIRWWW)/manuals/html/timestamp.php.html 
    169179 
    170180man_pdf : \ 
    171 $(DIRWWW)/before.sh.pdf \ 
    172 $(DIRWWW)/linkchecker.sh.pdf \ 
    173 $(DIRWWW)/mailtouser.sh.pdf \ 
    174 $(DIRWWW)/twindoi.sh.pdf \ 
    175 $(DIRWWW)/install.sh.pdf \ 
    176 $(DIRWWW)/bibopa.sh.pdf \ 
    177 $(DIRWWW)/components_db.xsl.pdf \ 
    178 $(DIRWWW)/form_db.xsl.pdf \ 
    179 $(DIRWWW)/main_html.xsl.pdf \ 
    180 $(DIRWWW)/message_lang.xsl.pdf \ 
    181 $(DIRWWW)/superbib01_html.xsl.pdf \ 
    182 $(DIRWWW)/superbib01_xml.xsl.pdf \ 
    183 $(DIRWWW)/superbib02_html.xsl.pdf \ 
    184 $(DIRWWW)/superbib02_xml.xsl.pdf \ 
    185 $(DIRWWW)/superbibmany01_html.xsl.pdf \ 
    186 $(DIRWWW)/superbibmany01_xml.xsl.pdf \ 
    187 $(DIRWWW)/superbibmany02_html.xsl.pdf \ 
    188 $(DIRWWW)/superbibmany02_xml.xsl.pdf \ 
    189 $(DIRWWW)/template_db.xsl.pdf \ 
    190 $(DIRWWW)/user_db.xsl.pdf \ 
    191 $(DIRWWW)/user_html.xsl.pdf \ 
    192 $(DIRWWW)/timestamp.php.pdf 
    193  
    194 $(DIRWWW)/index.html : \ 
     181$(DIRWWW)/manuals/pdf/$(PRODUCT)_manuals.pdf \ 
     182$(DIRWWW)/manuals/pdf/before.sh.pdf \ 
     183$(DIRWWW)/manuals/pdf/linkchecker.sh.pdf \ 
     184$(DIRWWW)/manuals/pdf/mailtouser.sh.pdf \ 
     185$(DIRWWW)/manuals/pdf/twindoi.sh.pdf \ 
     186$(DIRWWW)/manuals/pdf/install.sh.pdf \ 
     187$(DIRWWW)/manuals/pdf/bibopa.sh.pdf \ 
     188$(DIRWWW)/manuals/pdf/components_db.xsl.pdf \ 
     189$(DIRWWW)/manuals/pdf/form_db.xsl.pdf \ 
     190$(DIRWWW)/manuals/pdf/main_html.xsl.pdf \ 
     191$(DIRWWW)/manuals/pdf/message_lang.xsl.pdf \ 
     192$(DIRWWW)/manuals/pdf/superbib01_html.xsl.pdf \ 
     193$(DIRWWW)/manuals/pdf/superbib01_xml.xsl.pdf \ 
     194$(DIRWWW)/manuals/pdf/superbib02_html.xsl.pdf \ 
     195$(DIRWWW)/manuals/pdf/superbib02_xml.xsl.pdf \ 
     196$(DIRWWW)/manuals/pdf/superbibmany01_html.xsl.pdf \ 
     197$(DIRWWW)/manuals/pdf/superbibmany01_xml.xsl.pdf \ 
     198$(DIRWWW)/manuals/pdf/superbibmany02_html.xsl.pdf \ 
     199$(DIRWWW)/manuals/pdf/superbibmany02_xml.xsl.pdf \ 
     200$(DIRWWW)/manuals/pdf/template_db.xsl.pdf \ 
     201$(DIRWWW)/manuals/pdf/user_db.xsl.pdf \ 
     202$(DIRWWW)/manuals/pdf/user_html.xsl.pdf \ 
     203$(DIRWWW)/manuals/pdf/timestamp.php.pdf 
     204 
     205$(DIRWWW)/manuals/html/index.html : \ 
    195206$(DIRTMP)/index.rst 
    196         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    197         $< $@ 
     207        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     208        $< $@ 
     209 
     210$(DIRWWW)/manuals/pdf/$(PRODUCT)_manuals.pdf : \ 
     211$(DIRTMP)/$(PRODUCT)_manuals.tex 
     212        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     213 
     214$(DIRTMP)/$(PRODUCT)_manuals.tex : \ 
     215$(DIRTMP)/$(PRODUCT)_manuals.rst 
     216        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
     217        $< $@ 
     218 
     219$(DIRTMP)/$(PRODUCT)_manuals.rst : \ 
     220$(DIRTMP)/index.rst \ 
     221$(LIST_SRCSH) \ 
     222$(LIST_SRCXSL) \ 
     223$(LIST_SRCPHP) 
     224        cat $(DIRTMP)/index.rst > ${DIRTMP}/$(PRODUCT)_manuals.rst1 
     225        @for file in $(LIST_SRCSH) $(LIST_SRCXSL) $(LIST_SRCPHP); \ 
     226        do echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     227        echo ".. raw:: latex" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     228        echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     229        echo "  \newpage" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     230        echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     231        echo "$$(basename $${file})" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     232        echo "$$(basename $${file} | tr [:print:] =)" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ; \ 
     233        echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 
     234        sed -e "s/^==*$$/-----------------/" ${DIRTMP}/$$(basename $${file}).rst >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 
     235        done 
     236        grep "\.\. _.*: .*$$" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 
     237        ${DIRTMP}/links.rst 
     238        sed -e "s/^ *//" ${DIRTMP}/links.rst | sort -u > ${DIRTMP}/links.rst2 
     239        sed -e "/\.\. _.*: .*$$/d" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 
     240        ${DIRTMP}/$(PRODUCT)_manuals.rst2 
     241        cat ${DIRTMP}/$(PRODUCT)_manuals.rst2 ${DIRTMP}/links.rst2 > $@ 
    198242 
    199243$(DIRTMP)/index.rst : 
    200244        echo "===================" >> $@ 
    201         echo "$(PRODUCT) tools" >> $@ 
     245        echo "$(PRODUCTNAME) tools" >> $@ 
    202246        echo "===================" >> $@ 
    203247        echo " " >> $@ 
     
    213257        for file in $(LIST_SRCPHP); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}): $$(basename $${file}).html"; done >> $@ 
    214258 
    215 $(DIRWWW)/before.sh.html : \ 
     259$(DIRWWW)/manuals/html/before.sh.html : \ 
    216260$(DIRTMP)/before.sh.rst 
    217         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    218         $< $@ 
    219  
    220 $(DIRWWW)/before.sh.pdf : \ 
     261        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     262        $< $@ 
     263 
     264$(DIRWWW)/manuals/pdf/before.sh.pdf : \ 
    221265$(DIRTMP)/before.sh.tex 
    222         pdflatex -output-directory $(DIRWWW)/ $< 
     266        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    223267 
    224268$(DIRTMP)/before.sh.tex : \ 
    225269$(DIRTMP)/before.sh.rst 
    226         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     270        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    227271        $< $@ 
    228272 
     
    231275        @extract_rst.sh -i $< -l sh -o $@ 
    232276 
    233 $(DIRWWW)/linkchecker.sh.html : \ 
     277$(DIRWWW)/manuals/html/linkchecker.sh.html : \ 
    234278$(DIRTMP)/linkchecker.sh.rst 
    235         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    236         $< $@ 
    237  
    238 $(DIRWWW)/linkchecker.sh.pdf : \ 
     279        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     280        $< $@ 
     281 
     282$(DIRWWW)/manuals/pdf/linkchecker.sh.pdf : \ 
    239283$(DIRTMP)/linkchecker.sh.tex 
    240         pdflatex -output-directory $(DIRWWW)/ $< 
    241         pdflatex -output-directory $(DIRWWW)/ $< 
     284        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     285        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    242286 
    243287$(DIRTMP)/linkchecker.sh.tex : \ 
    244288$(DIRTMP)/linkchecker.sh.rst 
    245         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     289        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    246290        $< $@ 
    247291 
     
    250294        @extract_rst.sh -i $< -l sh -o $@ 
    251295 
    252 $(DIRWWW)/mailtouser.sh.html : \ 
     296$(DIRWWW)/manuals/html/mailtouser.sh.html : \ 
    253297$(DIRTMP)/mailtouser.sh.rst 
    254         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    255         $< $@ 
    256  
    257 $(DIRWWW)/mailtouser.sh.pdf : \ 
     298        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     299        $< $@ 
     300 
     301$(DIRWWW)/manuals/pdf/mailtouser.sh.pdf : \ 
    258302$(DIRTMP)/mailtouser.sh.tex 
    259         pdflatex -output-directory $(DIRWWW)/ $< 
    260         pdflatex -output-directory $(DIRWWW)/ $< 
     303        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     304        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    261305 
    262306$(DIRTMP)/mailtouser.sh.tex : \ 
    263307$(DIRTMP)/mailtouser.sh.rst 
    264         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     308        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    265309        $< $@ 
    266310 
     
    269313        @extract_rst.sh -i $< -l sh -o $@ 
    270314 
    271 $(DIRWWW)/twindoi.sh.html : \ 
     315$(DIRWWW)/manuals/html/twindoi.sh.html : \ 
    272316$(DIRTMP)/twindoi.sh.rst 
    273         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    274         $< $@ 
    275  
    276 $(DIRWWW)/twindoi.sh.pdf : \ 
     317        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     318        $< $@ 
     319 
     320$(DIRWWW)/manuals/pdf/twindoi.sh.pdf : \ 
    277321$(DIRTMP)/twindoi.sh.tex 
    278         pdflatex -output-directory $(DIRWWW)/ $< 
    279         pdflatex -output-directory $(DIRWWW)/ $< 
     322        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     323        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    280324 
    281325$(DIRTMP)/twindoi.sh.tex : \ 
    282326$(DIRTMP)/twindoi.sh.rst 
    283         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     327        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    284328        $< $@ 
    285329 
     
    287331$(DIRSRC)/twindoi.sh 
    288332        @extract_rst.sh -i $< -l sh -o $@ 
    289 $(DIRWWW)/install.sh.html : \ 
     333 
     334$(DIRWWW)/manuals/html/install.sh.html : \ 
    290335$(DIRTMP)/install.sh.rst 
    291         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    292         $< $@ 
    293  
    294 $(DIRWWW)/install.sh.pdf : \ 
     336        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     337        $< $@ 
     338 
     339$(DIRWWW)/manuals/pdf/install.sh.pdf : \ 
    295340$(DIRTMP)/install.sh.tex 
    296         pdflatex -output-directory $(DIRWWW)/ $< 
    297         pdflatex -output-directory $(DIRWWW)/ $< 
     341        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     342        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    298343 
    299344$(DIRTMP)/install.sh.tex : \ 
    300345$(DIRTMP)/install.sh.rst 
    301         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     346        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    302347        $< $@ 
    303348 
     
    306351        @extract_rst.sh -i $< -l sh -o $@ 
    307352 
    308 $(DIRWWW)/bibopa.sh.html : \ 
     353$(DIRWWW)/manuals/html/bibopa.sh.html : \ 
    309354$(DIRTMP)/bibopa.sh.rst 
    310         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    311         $< $@ 
    312  
    313 $(DIRWWW)/bibopa.sh.pdf : \ 
     355        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     356        $< $@ 
     357 
     358$(DIRWWW)/manuals/pdf/bibopa.sh.pdf : \ 
    314359$(DIRTMP)/bibopa.sh.tex 
    315         pdflatex -output-directory $(DIRWWW)/ $< 
    316         pdflatex -output-directory $(DIRWWW)/ $< 
     360        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     361        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    317362 
    318363$(DIRTMP)/bibopa.sh.tex : \ 
    319364$(DIRTMP)/bibopa.sh.rst 
    320         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     365        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    321366        $< $@ 
    322367 
     
    325370        @extract_rst.sh -i $< -l sh -o $@ 
    326371 
    327 $(DIRWWW)/components_db.xsl.html : \ 
     372$(DIRWWW)/manuals/html/components_db.xsl.html : \ 
    328373$(DIRTMP)/components_db.xsl.rst 
    329         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    330         $< $@ 
    331  
    332 $(DIRWWW)/components_db.xsl.pdf : \ 
     374        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     375        $< $@ 
     376 
     377$(DIRWWW)/manuals/pdf/components_db.xsl.pdf : \ 
    333378$(DIRTMP)/components_db.xsl.tex 
    334         pdflatex -output-directory $(DIRWWW)/ $< 
    335         pdflatex -output-directory $(DIRWWW)/ $< 
     379        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     380        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    336381 
    337382$(DIRTMP)/components_db.xsl.tex : \ 
    338383$(DIRTMP)/components_db.xsl.rst 
    339         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     384        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    340385        $< $@ 
    341386 
     
    344389        @extract_rst.sh -i $< -l xml -o $@ 
    345390 
    346 $(DIRWWW)/form_db.xsl.html : \ 
     391$(DIRWWW)/manuals/html/form_db.xsl.html : \ 
    347392$(DIRTMP)/form_db.xsl.rst 
    348         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    349         $< $@ 
    350  
    351 $(DIRWWW)/form_db.xsl.pdf : \ 
     393        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     394        $< $@ 
     395 
     396$(DIRWWW)/manuals/pdf/form_db.xsl.pdf : \ 
    352397$(DIRTMP)/form_db.xsl.tex 
    353         pdflatex -output-directory $(DIRWWW)/ $< 
    354         pdflatex -output-directory $(DIRWWW)/ $< 
     398        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     399        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    355400 
    356401$(DIRTMP)/form_db.xsl.tex : \ 
    357402$(DIRTMP)/form_db.xsl.rst 
    358         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     403        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    359404        $< $@ 
    360405 
     
    363408        @extract_rst.sh -i $< -l xml -o $@ 
    364409 
    365 $(DIRWWW)/main_html.xsl.html : \ 
     410$(DIRWWW)/manuals/html/main_html.xsl.html : \ 
    366411$(DIRTMP)/main_html.xsl.rst 
    367         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    368         $< $@ 
    369  
    370 $(DIRWWW)/main_html.xsl.pdf : \ 
     412        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     413        $< $@ 
     414 
     415$(DIRWWW)/manuals/pdf/main_html.xsl.pdf : \ 
    371416$(DIRTMP)/main_html.xsl.tex 
    372         pdflatex -output-directory $(DIRWWW)/ $< 
    373         pdflatex -output-directory $(DIRWWW)/ $< 
     417        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     418        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    374419 
    375420$(DIRTMP)/main_html.xsl.tex : \ 
    376421$(DIRTMP)/main_html.xsl.rst 
    377         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     422        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    378423        $< $@ 
    379424 
     
    382427        @extract_rst.sh -i $< -l xml -o $@ 
    383428 
    384 $(DIRWWW)/message_lang.xsl.html : \ 
     429$(DIRWWW)/manuals/html/message_lang.xsl.html : \ 
    385430$(DIRTMP)/message_lang.xsl.rst 
    386         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    387         $< $@ 
    388  
    389 $(DIRWWW)/message_lang.xsl.pdf : \ 
     431        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     432        $< $@ 
     433 
     434$(DIRWWW)/manuals/pdf/message_lang.xsl.pdf : \ 
    390435$(DIRTMP)/message_lang.xsl.tex 
    391         pdflatex -output-directory $(DIRWWW)/ $< 
    392         pdflatex -output-directory $(DIRWWW)/ $< 
     436        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     437        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    393438 
    394439$(DIRTMP)/message_lang.xsl.tex : \ 
    395440$(DIRTMP)/message_lang.xsl.rst 
    396         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     441        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    397442        $< $@ 
    398443 
     
    401446        @extract_rst.sh -i $< -l xml -o $@ 
    402447 
    403 $(DIRWWW)/superbib01_html.xsl.html : \ 
     448$(DIRWWW)/manuals/html/superbib01_html.xsl.html : \ 
    404449$(DIRTMP)/superbib01_html.xsl.rst 
    405         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    406         $< $@ 
    407  
    408 $(DIRWWW)/superbib01_html.xsl.pdf : \ 
     450        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     451        $< $@ 
     452 
     453$(DIRWWW)/manuals/pdf/superbib01_html.xsl.pdf : \ 
    409454$(DIRTMP)/superbib01_html.xsl.tex 
    410         pdflatex -output-directory $(DIRWWW)/ $< 
    411         pdflatex -output-directory $(DIRWWW)/ $< 
     455        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     456        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    412457 
    413458$(DIRTMP)/superbib01_html.xsl.tex : \ 
    414459$(DIRTMP)/superbib01_html.xsl.rst 
    415         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     460        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    416461        $< $@ 
    417462 
     
    420465        @extract_rst.sh -i $< -l xml -o $@ 
    421466 
    422 $(DIRWWW)/superbib01_xml.xsl.html : \ 
     467$(DIRWWW)/manuals/html/superbib01_xml.xsl.html : \ 
    423468$(DIRTMP)/superbib01_xml.xsl.rst 
    424         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    425         $< $@ 
    426  
    427 $(DIRWWW)/superbib01_xml.xsl.pdf : \ 
     469        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     470        $< $@ 
     471 
     472$(DIRWWW)/manuals/pdf/superbib01_xml.xsl.pdf : \ 
    428473$(DIRTMP)/superbib01_xml.xsl.tex 
    429         pdflatex -output-directory $(DIRWWW)/ $< 
    430         pdflatex -output-directory $(DIRWWW)/ $< 
     474        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     475        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    431476 
    432477$(DIRTMP)/superbib01_xml.xsl.tex : \ 
    433478$(DIRTMP)/superbib01_xml.xsl.rst 
    434         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     479        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    435480        $< $@ 
    436481 
     
    439484        @extract_rst.sh -i $< -l xml -o $@ 
    440485 
    441 $(DIRWWW)/superbib02_html.xsl.html : \ 
     486$(DIRWWW)/manuals/html/superbib02_html.xsl.html : \ 
    442487$(DIRTMP)/superbib02_html.xsl.rst 
    443         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    444         $< $@ 
    445  
    446 $(DIRWWW)/superbib02_html.xsl.pdf : \ 
     488        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     489        $< $@ 
     490 
     491$(DIRWWW)/manuals/pdf/superbib02_html.xsl.pdf : \ 
    447492$(DIRTMP)/superbib02_html.xsl.tex 
    448         pdflatex -output-directory $(DIRWWW)/ $< 
    449         pdflatex -output-directory $(DIRWWW)/ $< 
     493        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     494        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    450495 
    451496$(DIRTMP)/superbib02_html.xsl.tex : \ 
    452497$(DIRTMP)/superbib02_html.xsl.rst 
    453         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     498        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    454499        $< $@ 
    455500 
     
    458503        @extract_rst.sh -i $< -l xml -o $@ 
    459504 
    460 $(DIRWWW)/superbib02_xml.xsl.html : \ 
     505$(DIRWWW)/manuals/html/superbib02_xml.xsl.html : \ 
    461506$(DIRTMP)/superbib02_xml.xsl.rst 
    462         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    463         $< $@ 
    464  
    465 $(DIRWWW)/superbib02_xml.xsl.pdf : \ 
     507        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     508        $< $@ 
     509 
     510$(DIRWWW)/manuals/pdf/superbib02_xml.xsl.pdf : \ 
    466511$(DIRTMP)/superbib02_xml.xsl.tex 
    467         pdflatex -output-directory $(DIRWWW)/ $< 
    468         pdflatex -output-directory $(DIRWWW)/ $< 
     512        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     513        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    469514 
    470515$(DIRTMP)/superbib02_xml.xsl.tex : \ 
    471516$(DIRTMP)/superbib02_xml.xsl.rst 
    472         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     517        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    473518        $< $@ 
    474519 
     
    477522        @extract_rst.sh -i $< -l xml -o $@ 
    478523 
    479 $(DIRWWW)/superbibmany01_html.xsl.html : \ 
     524$(DIRWWW)/manuals/html/superbibmany01_html.xsl.html : \ 
    480525$(DIRTMP)/superbibmany01_html.xsl.rst 
    481         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    482         $< $@ 
    483  
    484 $(DIRWWW)/superbibmany01_html.xsl.pdf : \ 
     526        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     527        $< $@ 
     528 
     529$(DIRWWW)/manuals/pdf/superbibmany01_html.xsl.pdf : \ 
    485530$(DIRTMP)/superbibmany01_html.xsl.tex 
    486         pdflatex -output-directory $(DIRWWW)/ $< 
    487         pdflatex -output-directory $(DIRWWW)/ $< 
     531        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     532        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    488533 
    489534$(DIRTMP)/superbibmany01_html.xsl.tex : \ 
    490535$(DIRTMP)/superbibmany01_html.xsl.rst 
    491         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     536        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    492537        $< $@ 
    493538 
     
    496541        @extract_rst.sh -i $< -l xml -o $@ 
    497542 
    498 $(DIRWWW)/superbibmany01_xml.xsl.html : \ 
     543$(DIRWWW)/manuals/html/superbibmany01_xml.xsl.html : \ 
    499544$(DIRTMP)/superbibmany01_xml.xsl.rst 
    500         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    501         $< $@ 
    502  
    503 $(DIRWWW)/superbibmany01_xml.xsl.pdf : \ 
     545        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     546        $< $@ 
     547 
     548$(DIRWWW)/manuals/pdf/superbibmany01_xml.xsl.pdf : \ 
    504549$(DIRTMP)/superbibmany01_xml.xsl.tex 
    505         pdflatex -output-directory $(DIRWWW)/ $< 
    506         pdflatex -output-directory $(DIRWWW)/ $< 
     550        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     551        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    507552 
    508553$(DIRTMP)/superbibmany01_xml.xsl.tex : \ 
    509554$(DIRTMP)/superbibmany01_xml.xsl.rst 
    510         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     555        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    511556        $< $@ 
    512557 
     
    515560        @extract_rst.sh -i $< -l xml -o $@ 
    516561 
    517 $(DIRWWW)/superbibmany02_html.xsl.html : \ 
     562$(DIRWWW)/manuals/html/superbibmany02_html.xsl.html : \ 
    518563$(DIRTMP)/superbibmany02_html.xsl.rst 
    519         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    520         $< $@ 
    521  
    522 $(DIRWWW)/superbibmany02_html.xsl.pdf : \ 
     564        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     565        $< $@ 
     566 
     567$(DIRWWW)/manuals/pdf/superbibmany02_html.xsl.pdf : \ 
    523568$(DIRTMP)/superbibmany02_html.xsl.tex 
    524         pdflatex -output-directory $(DIRWWW)/ $< 
    525         pdflatex -output-directory $(DIRWWW)/ $< 
     569        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     570        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    526571 
    527572$(DIRTMP)/superbibmany02_html.xsl.tex : \ 
    528573$(DIRTMP)/superbibmany02_html.xsl.rst 
    529         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     574        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    530575        $< $@ 
    531576 
     
    534579        @extract_rst.sh -i $< -l xml -o $@ 
    535580 
    536 $(DIRWWW)/superbibmany02_xml.xsl.html : \ 
     581$(DIRWWW)/manuals/html/superbibmany02_xml.xsl.html : \ 
    537582$(DIRTMP)/superbibmany02_xml.xsl.rst 
    538         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    539         $< $@ 
    540  
    541 $(DIRWWW)/superbibmany02_xml.xsl.pdf : \ 
     583        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     584        $< $@ 
     585 
     586$(DIRWWW)/manuals/pdf/superbibmany02_xml.xsl.pdf : \ 
    542587$(DIRTMP)/superbibmany02_xml.xsl.tex 
    543         pdflatex -output-directory $(DIRWWW)/ $< 
    544         pdflatex -output-directory $(DIRWWW)/ $< 
     588        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     589        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    545590 
    546591$(DIRTMP)/superbibmany02_xml.xsl.tex : \ 
    547592$(DIRTMP)/superbibmany02_xml.xsl.rst 
    548         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     593        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    549594        $< $@ 
    550595 
     
    553598        @extract_rst.sh -i $< -l xml -o $@ 
    554599 
    555 $(DIRWWW)/template_db.xsl.html : \ 
     600$(DIRWWW)/manuals/html/template_db.xsl.html : \ 
    556601$(DIRTMP)/template_db.xsl.rst 
    557         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    558         $< $@ 
    559  
    560 $(DIRWWW)/template_db.xsl.pdf : \ 
     602        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     603        $< $@ 
     604 
     605$(DIRWWW)/manuals/pdf/template_db.xsl.pdf : \ 
    561606$(DIRTMP)/template_db.xsl.tex 
    562         pdflatex -output-directory $(DIRWWW)/ $< 
    563         pdflatex -output-directory $(DIRWWW)/ $< 
     607        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     608        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    564609 
    565610$(DIRTMP)/template_db.xsl.tex : \ 
    566611$(DIRTMP)/template_db.xsl.rst 
    567         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     612        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    568613        $< $@ 
    569614 
     
    572617        @extract_rst.sh -i $< -l xml -o $@ 
    573618 
    574 $(DIRWWW)/user_db.xsl.html : \ 
     619$(DIRWWW)/manuals/html/user_db.xsl.html : \ 
    575620$(DIRTMP)/user_db.xsl.rst 
    576         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    577         $< $@ 
    578  
    579 $(DIRWWW)/user_db.xsl.pdf : \ 
     621        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     622        $< $@ 
     623 
     624$(DIRWWW)/manuals/pdf/user_db.xsl.pdf : \ 
    580625$(DIRTMP)/user_db.xsl.tex 
    581         pdflatex -output-directory $(DIRWWW)/ $< 
    582         pdflatex -output-directory $(DIRWWW)/ $< 
     626        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     627        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    583628 
    584629$(DIRTMP)/user_db.xsl.tex : \ 
    585630$(DIRTMP)/user_db.xsl.rst 
    586         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     631        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    587632        $< $@ 
    588633 
     
    591636        @extract_rst.sh -i $< -l xml -o $@ 
    592637 
    593 $(DIRWWW)/user_html.xsl.html : \ 
     638$(DIRWWW)/manuals/html/user_html.xsl.html : \ 
    594639$(DIRTMP)/user_html.xsl.rst 
    595         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    596         $< $@ 
    597  
    598 $(DIRWWW)/user_html.xsl.pdf : \ 
     640        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     641        $< $@ 
     642 
     643$(DIRWWW)/manuals/pdf/user_html.xsl.pdf : \ 
    599644$(DIRTMP)/user_html.xsl.tex 
    600         pdflatex -output-directory $(DIRWWW)/ $< 
    601         pdflatex -output-directory $(DIRWWW)/ $< 
     645        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     646        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    602647 
    603648$(DIRTMP)/user_html.xsl.tex : \ 
    604649$(DIRTMP)/user_html.xsl.rst 
    605         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     650        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    606651        $< $@ 
    607652 
     
    610655        @extract_rst.sh -i $< -l xml -o $@ 
    611656 
    612 $(DIRWWW)/timestamp.php.html : \ 
     657$(DIRWWW)/manuals/html/timestamp.php.html : \ 
    613658$(DIRTMP)/timestamp.php.rst 
    614         rst2html.py --input-encoding=ISO-8859-15 --strict \ 
    615         $< $@ 
    616  
    617 $(DIRWWW)/timestamp.php.pdf : \ 
     659        @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
     660        $< $@ 
     661 
     662$(DIRWWW)/manuals/pdf/timestamp.php.pdf : \ 
    618663$(DIRTMP)/timestamp.php.tex 
    619         pdflatex -output-directory $(DIRWWW)/ $< 
    620         pdflatex -output-directory $(DIRWWW)/ $< 
     664        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
     665        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    621666 
    622667$(DIRTMP)/timestamp.php.tex : \ 
    623668$(DIRTMP)/timestamp.php.rst 
    624         rst2newlatex.py --input-encoding=ISO-8859-15 --strict \ 
     669        @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    625670        $< $@ 
    626671 
  • trunk/before.sh

    r79 r80  
    11#! /bin/sh 
    2 # 
    32#+ 
     3# 
    44# NAME 
    55# ==== 
     
    8383if [ ${#} -lt ${minargcount} ] 
    8484then 
    85  echo "eee : not enought arguments" 
     85 echo "eee : not enought arguments (${#} vs ${minargcount})" 
    8686 echo "${usage}" 
    8787 exit 1 
  • trunk/biblioentry_xml.xsl

    r74 r80  
    587587    </xsl:otherwise> 
    588588   </xsl:choose> 
    589  <xsl:value-of select="normalize-space(.)"/> 
    590  <xsl:text>, </xsl:text> 
    591589</xsl:template> 
    592590 
     
    669667<xsl:choose> 
    670668<xsl:when test="contains(.,'In Press') or contains(.,'In press') or contains(.,'in press') or contains(.,'in revision') or contains(.,'submitted')"> 
    671  <xsl:value-of select="normalize-space(.)"/> 
    672  <xsl:text>, </xsl:text> 
     669 <xsl:text>, </xsl:text> 
     670 <xsl:value-of select="normalize-space(.)"/> 
    673671</xsl:when> 
    674672<xsl:otherwise> 
  • trunk/bibopa.sh

    r75 r80  
    11#!/bin/bash 
    22#+ 
     3# 
    34# NAME 
    45# ==== 
     
    8788# ======== 
    8889# 
    89 # To transform the NEMO bibilography file in raw format: 
     90# To transform the NEMO bibliography file in raw format: 
    9091# 
    9192# :: 
     
    9495# 
    9596# 
    96 # To transform a bibilography file in mailbody format: 
     97# To transform a bibliography file in mailbody format: 
    9798# 
    9899# :: 
     
    101102# 
    102103# 
    103 # To transform a bibilography file in bibtex format in french: 
     104# To transform a bibliography file in bibtex format in french: 
    104105# 
    105106# :: 
     
    108109# 
    109110# 
    110 # To transform the SUPERBIB demo bibilography file in raw format: 
     111# To transform the SUPERBIB demo bibliography file in raw format: 
    111112# 
    112113# :: 
     
    115116# 
    116117# 
    117 # see also mailtouser.sh 
     118# SEE ALSO 
     119# ======== 
     120# 
     121# mailtouser.sh_ 
     122# 
     123# .. _mailtouser.sh : mailtouser.sh.html 
    118124# 
    119125# FILES 
     
    125131# /usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr 
    126132# 
     133# 
     134# TODO 
     135# ==== 
     136# 
     137# gestion des comments 
     138# 
     139# gestion des id existants (cf à la fin) 
     140# 
     141# option debug 
     142# 
     143# should use iconv instead of recode 
     144# for portability issue but not found yet the "flat" fonctionnality in  
     145# iconv 
     146# 
     147# write something in the logfile ! 
     148# 
    127149# EVOLUTIONS 
    128150# ========== 
    129151# 
    130 # ++ gestion des comments 
    131 # 
    132 # ++ gestion des id existants (cf à la fin) 
    133 # 
    134 # ++ option debug 
    135152# 
    136153# 
    137154# $Id$ 
    138155# 
     156# - fplod 2008-10-28T11:40:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
     157# 
     158#   * add journal "Progress In Oceanography" 
     159#   * add journal "Climatic Change" 
     160#   * add journal "Ocean Dynamics" 
     161#   * add journal "Phil. Trans. Roy. Soc. A" 
     162#   * add journal "Izvestiya Atmospheric and Oceanic Physics" 
     163#   * add journal "Journal of Hydrometeorology" 
     164#   * add journal "Remote Sensing of Environment" 
     165#   * add journal "Oceanology" 
     166#   * add journal "Water Resour. Res." 
     167#   * add journal "Advances in Atmospheric Sciences" 
     168#   * add journal "Quaternary Science Reviews" 
     169#   * replace "Elsevier Oceanography Series" by "Elsevier Oceanographic Series" 
     170#   * bug fix : unclosed date tag 
     171#   * trouble with flat conversion for id building ... 
     172#   * remove interactivity at then end (allowing redirection of stderr and  
     173#     stdout) 
     174#   * strip blank lines 
     175#   * bug fix : counting nb of occurences of "," technique ... to be improved 
     176# 
    139177# - fplod 2008-09-16T15:19:59Z aedon.locean-ipsl.upmc.fr (Darwin) 
    140178# 
    141 * comments in ReStructured Text 
     179 * comments in ReStructured Text 
    142180# 
    143181# - fplod 2008-05-16T10:33:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    144182# 
    145 * add parameter -o for firstname/surname order in bibtex file 
     183 * add parameter -o for firstname/surname order in bibtex file 
    146184# 
    147185# - fplod 2008-05-15T15:15:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
    148186# 
    149 * new way of processing bibtex file : external/bibtex2xml.py 
     187 * new way of processing bibtex file : external/bibtex2xml.py 
    150188# 
    151189# - fplod 2008-04-30T07:11:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
    152190# 
    153 * chgt for dbk5 out 
    154 * xmlto 0.0.18 does'nt like this docbook release. remove 
    155 * usage of xml (xmlstarlet) for validation 
    156 * bug fix 
    157 * add journal names from demo1 
    158 * fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin) 
    159 * add -p option (to overide bibrefnemo in file name and id) 
    160 * add -l option by default en 
     191 * chgt for dbk5 out 
     192 * xmlto 0.0.18 does'nt like this docbook release. remove 
     193 * usage of xml (xmlstarlet) for validation 
     194 * bug fix 
     195 * add journal names from demo1 
     196 * fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin) 
     197 * add -p option (to overide bibrefnemo in file name and id) 
     198 * add -l option by default en 
    161199# 
    162200# - fplod 2008-03-11T11:25:27Z aedon.locean-ipsl.upmc.fr (Darwin) 
    163201# 
    164 * add bibtex entry (not finished)++ 
     202 * add bibtex entry (not finished)++ 
    165203# 
    166204# - fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    167205# 
    168 * <bibliomisc role="id"> replace by <biblioid class="doi"> 
     206 * <bibliomisc role="id"> replace by <biblioid class="doi"> 
    169207# 
    170208# - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    171209# 
    172 * Add journals 
     210 * Add journals 
    173211# 
    174212# - fplod 2007-05-10T09:17:09Z aedon.locean-ipsl.upmc.fr (Darwin) 
    175213# 
    176 * dernières touches 
     214 * dernières touches 
    177215# 
    178216# - fplod 2007-04-25T10:59:49Z cerbere.locean-ipsl.upmc.fr (Linux) 
    179217# 
    180 * add a filein parameter and an option for mailbody 
    181 * comments (line begininig with #) are now possible 
     218 * add a filein parameter and an option for mailbody 
     219 * comments (line begininig with #) are now possible 
    182220# 
    183221# - Sebastien Masson avril 2007 
    184222# 
    185 * creation 
     223 * creation 
    186224# 
    187225#- 
     
    212250command=$(basename ${0}) 
    213251log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    214 log=/tmp/${command}.${log_date} 
     252log=/tmp/$(basename ${command} .sh).${log_date} 
    215253# 
    216254# test if xsltproc is available 
     
    226264unset tool 
    227265# 
    228 # test if xml  is available 
     266# test if xml is available 
    229267tool=xml 
    230268type ${tool} 1> /dev/null 2>&1 
     
    240278# test if python is available 
    241279tool=python 
     280type ${tool} 1> /dev/null 2>&1 
     281status=${?} 
     282if [ ${status} -ne 0 ] 
     283then 
     284 echo " eee : ${tool} not found" 
     285 exit 1 
     286fi 
     287unset status 
     288unset tool 
     289# 
     290# test if recode is available 
     291tool=recode 
    242292type ${tool} 1> /dev/null 2>&1 
    243293status=${?} 
     
    450500jlist[${ij}]="The Courier" 
    451501ij=$(( ${ij} + 1)) 
    452 jlist[${ij}]="Elsevier Oceanographic Series" 
     502jlist[${ij}]="Elsevier Oceanography Series" 
    453503ij=$(( ${ij} + 1)) 
    454504jlist[${ij}]="In Conference Proceedings of the 1988 International Conference on Supercomputing" 
     
    501551ij=$(( ${ij} + 1)) 
    502552jlist[${ij}]="Physical Review Letters" 
     553ij=$(( ${ij} + 1)) 
     554jlist[${ij}]="Progress In Oceanography" 
     555ij=$(( ${ij} + 1)) 
     556jlist[${ij}]="Climatic Change" 
     557ij=$(( ${ij} + 1)) 
     558jlist[${ij}]="Ocean Dynamics" 
     559ij=$(( ${ij} + 1)) 
     560jlist[${ij}]="Phil. Trans. Roy. Soc. A" 
     561ij=$(( ${ij} + 1)) 
     562jlist[${ij}]="Izvestiya Atmospheric and Oceanic Physics" 
     563ij=$(( ${ij} + 1)) 
     564jlist[${ij}]="Journal of Hydrometeorology" 
     565ij=$(( ${ij} + 1)) 
     566jlist[${ij}]="Remote Sensing of Environment" 
     567ij=$(( ${ij} + 1)) 
     568jlist[${ij}]="Oceanology" 
     569ij=$(( ${ij} + 1)) 
     570jlist[${ij}]="Water Resour. Res." 
     571ij=$(( ${ij} + 1)) 
     572jlist[${ij}]="Advances in Atmospheric Sciences" 
     573ij=$(( ${ij} + 1)) 
     574jlist[${ij}]="Quaternary Science Reviews" 
     575ij=$(( ${ij} + 1)) 
     576jlist[${ij}]="AGU monograph Ocean Circulation Mechanisms and Impacts" 
    503577# 
    504578# following Journal name are fake ones for demo1 : references extracted from 
     
    525599# 
    526600# 
    527 # strip comments 
     601# strip comments and blank lines 
    528602fileraw_strict=/tmp/$(basename ${fileraw})_strict 
    529 grep -v "^#" ${fileraw} | grep -v "^%" > ${fileraw_strict} 
    530 iconv -f ISO-8859-1 -t UTF-8 ${fileraw_strict} > ${fileraw_strict}2 
    531 mv ${fileraw_strict}2 ${fileraw_strict} 
     603grep -v "^#" ${fileraw} | grep -v "^%" | sed "/^$/d" > ${fileraw_strict} 
     604# following line is not compatible with XML header ++ 
     605# comments for memory (why did I write this line !?) 
     606# iconv -f ISO-8859-1 -t UTF-8 ${fileraw_strict} > ${fileraw_strict}2 
     607# mv ${fileraw_strict}2 ${fileraw_strict} 
    532608case ${type} in 
    533609bibtex) 
     
    554630 
    555631<info> 
    556 <date>${log_date}<date> 
     632<date>${log_date}</date> 
    557633</info> 
    558634EOF 
     
    587663       firstsn=$( rmbl "${firstsn}" ) 
    588664     ## ref id 
    589        refid=$( echo ${firstsn} | tr "[:upper:]" "[:lower:]" | tr -s " " "_"  | tr -s "'" "_" | recode -d -f ISO-8859-1..flat )${year} 
     665       firstsn_flat=$( echo "${firstsn}" | recode -d -f ISO-8859-15..flat ) 
     666       # echo "firstsn : ${firstsn}" # ++ debug 
     667       # echo "firstsn_flat : ${firstsn_flat}" #++ debug 
     668       # test if no encoding problem after ISO-8859-15 to flat conversion 
     669       firstsn_test1=$(echo "${firstsn_flat}" | tr -d "[:alpha:]" | tr -d " " | tr -d "'" | tr -d "-") 
     670       #echo "firstsn_test1 : ${firstsn_test1}" # ++ debug 
     671       if [ ! -z "${firstsn_test1}" ] 
     672       then 
     673        echo "www : pb on ISO-8859-15 to flat conversion" 
     674        echo "www : on ${firstsn}" 
     675        echo "www : trying UTF-8 to flat conversion ..." 
     676        firstsn_flat=$( echo "${firstsn}" | recode -d -f UTF-8..flat ) 
     677        # test if no encoding problem after UTF-8 to flat conversion 
     678        firstsn_test2=$(echo "${firstsn_flat}" | tr -d "[:alpha:]" | tr -d " " | tr -d "'") 
     679        #echo "firstsn_test2 : A${firstsn_test2}A" # ++ debug 
     680        if [ ! -z "${firstsn_test2}" ] 
     681        then 
     682         echo "eee : pb on flat conversion of ${firstsn}" 
     683         exit 1 
     684        fi 
     685       fi 
     686       firstsn_lower=$( echo "${firstsn_flat}" | tr "[:upper:]" "[:lower:]") 
     687       firstsn_nopunct=$( echo "${firstsn_lower}" | tr -s " " "_"  | tr -s "'" "_") 
     688       refid="${firstsn_nopunct}${year}" 
     689       unset firstsn_lower 
     690       unset firstsn_flat 
     691       unset firstsn_test1 
     692       unset firstsn_test2 
    590693       num=$( grep -c "<biblioentry xml:id=\"${refid}_[0-9][0-9]\">" ${fileou} ) 
    591694       num=$(( ${num} + 1 )) 
     
    689792      echo "eee: Journal not found " 
    690793      echo "${endline}" 
    691       set 
     794      # uncomment next line for debug  
     795      # set # ++ debug 
    692796      exit 1 
    693797#+++ following lines are not yet validate 
     
    719823## doi 
    720824  endline=$( echo ${endline} | sed -e "s/[dD][oO][iI] *\t* *: *\t* */doi:/" ) 
     825  #echo "endline for doi ${endline}" 
    721826  ok=$( echo ${endline} | grep -ic "doi:" ) 
    722827  if [ ${ok} -eq 1 ] 
    723       then 
     828  then 
    724829      doi=${endline##*doi:} 
     830      #echo "doi : $doi" 
    725831      echo "  <biblioid class=\"doi\">${doi}</biblioid>" >> ${fileou} 
    726832      unset doi 
     
    731837      echo "" 
    732838  fi 
    733   num=$( echo ${endline} |  tr -dc "," | wc -c ) 
    734   case ${num} in 
     839  num=$( echo "${endline}" |  tr -dc "," | wc -c | tr -d " ") 
     840  case "${num}" in 
    735841      0) 
    736842### echo ${num}: ${endline} 
     
    872978      ;; 
    873979      *) 
    874 echo ${num}: ${endline} # ++debug 
    875 #set 
     980#echo "${num}: ${endline}" # ++debug 
     981#set # ++ debug 
    876982#exit 1 #++ debug 
    877983          cat <<EOF >> ${fileou} 
     
    9111017echo "iii : which was done just to check consistence of ${fileou}" 
    9121018more xmlstarlet.log 
    913 rm -i xmlstarlet.log 
    9141019# 
    9151020case ${type} in 
    9161021raw) 
    9171022 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 
    918  rm -i ${fileraw_strict} 
    9191023;; 
    9201024mailbody) 
    9211025 echo "iii : ${fileraw} contains a copy of input file" 
    922  rm -i ${fileraw} 
    9231026 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 
    924  rm -i ${fileraw_strict} 
    9251027;; 
    9261028esac 
  • trunk/components_db.xsl

    r76 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
     
    4041 
    4142  * creation 
     43 
    4244--> 
    4345 
  • trunk/form_db.xsl

    r76 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
     
    4445 
    4546  * creation 
     47 
    4648--> 
    4749 
  • trunk/insertphp.sh

    r76 r80  
    11#! /bin/sh 
    22#+ 
     3# 
    34# NAME 
    45# ==== 
     
    6768#   * creation to encapsulate insertphp_one.sed usage and use  
    6869#     main.xml title 
     70# 
    6971#- 
    7072system=$(uname) 
     
    7981command=$(basename ${0}) 
    8082log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    81 log=/tmp/${command}.${log_date} 
     83log=/tmp/$(basename ${command} .sh).${log_date} 
    8284# 
    8385# test if xml is available 
  • trunk/install.sh

    r79 r80  
    1 #!/bin/sh 
     1#!/bin/sh -x 
     2#+ 
    23# 
    3 #+ 
    44# NAME 
    55# ==== 
     
    4242# - fplod 2008-09-16T15:24:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
    4343# 
    44 * comments in ReStructured Text 
     44 * comments in ReStructured Text 
    4545# 
    4646# - fplod 2008-06-17T09:10:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    4747# 
    48 * add -l parameter only used in specific case at LOCEAN when user 
    49 #    parameter of persoweb must be different tthan login (ex: acmo vs fplod) 
    50 * replace http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" by 
    51 #    http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user} 
     48 * add -l parameter only used in specific case at LOCEAN when user 
     49#     parameter of persoweb must be different tthan login (ex: acmo vs fplod) 
     50 * replace http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" by 
     51#     http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user} 
    5252# 
    5353# - fplod 2008-03-28T10:26:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    5757# - fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
    5858# 
    59 * parametrisation and translation 
     59 * parametrisation and translation 
    6060# 
    6161# - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    6262# 
    63 * can give the answer with input parameters 
     63 * can give the answer with input parameters 
    6464# 
    6565# - fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    166166   dirpublish=${urlpublish##*~} 
    167167   cd ${dirwww} 
    168    lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 
     168   #lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 
     169   lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} www.locean-ipsl.upmc.fr 
     170# pour acmo a la main ++ 
     171# ++lftp -e 'mirror -R . acmo/nouveaux/;quit' -u fplod www.locean-ipsl.upmc.fr 
     172 
    169173   # ++ log 
    170174  fi 
  • trunk/linkchecker.sh

    r75 r80  
    11#! /bin/sh 
    22#+ 
     3# 
    34# NAME 
    45# ==== 
     
    7879# 
    7980#   * création 
     81# 
    8082#- 
    8183system=$(uname) 
     
    8890 ;; 
    8991esac 
    90 command=$(basename ${0} .sh) 
     92command=$(basename ${0}) 
    9193log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    92 log=/tmp/${command}.log.${log_date} 
     94log=/tmp/$(basename ${command} .sh).log.${log_date} 
    9395# 
    9496usage=" Usage : ${command} -d dircheck -u url" 
  • trunk/mailtouser.sh

    r75 r80  
    11#! /bin/sh 
    22#+ 
     3# 
    34# NAME 
    45# ==== 
     
    2122# convert email text in xml form following user.dtd 
    2223# 
    23 # see also bibopa.sh 
     24# SEE ALSO 
     25# ======== 
     26# 
     27# bibopa.sh_ 
     28# 
     29# .. _bibopa.sh : bibopa.sh.html 
    2430# 
    2531# EXAMPLES 
     
    7884 ;; 
    7985esac 
    80 command=$(basename ${0} .sh) 
     86command=$(basename ${0}) 
    8187log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    82 log=/tmp/${command}.${log_date} 
     88log=/tmp/$(basename ${command} .sh).${log_date} 
    8389# 
    8490usage=" Usage : ${command} -m mailbodyfile -x xmloutput" 
    8591# 
    8692# test if xmllint is available 
    87 type xmllint 1> /dev/null 2>&1 
     93tool=xmllint 
     94type ${tool} 1> /dev/null 2>&1 
    8895status=${?} 
    8996if [ ${status} -ne 0 ] 
    9097then 
    91  echo " eee : xmllint not found" 
     98 echo " eee : ${tool} not found" 
    9299 exit 1 
    93100fi 
     101unset tool 
     102unset status 
    94103# 
    95104# check for user.dtd 
  • trunk/main_html.xsl

    r76 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
     
    3233 
    3334  * création 
     35 
    3436--> 
    3537 
  • trunk/message_lang.xsl

    r76 r80  
    55 
    66<!--rst 
     7 
    78NAME 
    89==== 
     
    2627 
    2728  * creation 
     29 
    2830--> 
    2931 
  • trunk/superbib01_html.xsl

    r76 r80  
    99NAME 
    1010==== 
     11 
    1112transformation docbook en un html 
    1213 
     
    2324 
    2425  * création 
     26 
    2527--> 
    2628 
  • trunk/superbib02_html.xsl

    r76 r80  
    66 
    77<!--rst 
     8 
    89NAME 
    910==== 
     
    2122 
    2223  * création 
     24 
    2325--> 
    2426 
  • trunk/superbib02_xml.xsl

    r77 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
  • trunk/superbibmany01_html.xsl

    r76 r80  
    2121 
    2222- fplod 2007-05-04T09:05:49Z aedon.locean-ipsl.upmc.fr (Darwin) 
     23 
    2324  * création à partir de bibnemomaf02_html.xsl mais user.footer.navigation 
    2425    au lieu de user.footer.content 
     26 
    2527--> 
    2628 
  • trunk/superbibmany01_xml.xsl

    r77 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
     
    4950 
    5051  * création à partir de bibnemomaf02_xml.xsl mais liens externes 
     52 
    5153--> 
    5254 
  • trunk/superbibmany02_html.xsl

    r76 r80  
    66 
    77<!--rst 
     8 
    89NAME 
    910==== 
     
    2122 
    2223- fplod 2007-04-06T10:30:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
     24 
    2325  * création 
     26 
    2427--> 
    2528 
  • trunk/superbibmany02_xml.xsl

    r76 r80  
    77 
    88<!--rst 
     9 
    910NAME 
    1011==== 
     
    5152 
    5253  * creation 
     54 
    5355--> 
    5456 
  • trunk/template_db.xsl

    r76 r80  
    88 
    99<!--rst 
     10 
    1011NAME 
    1112==== 
     
    3334 
    3435  * creation 
     36 
    3537--> 
    3638 
  • trunk/timestamp.php

    r76 r80  
    2222 
    2323  * creation 
     24 
    2425*/ 
    2526 
  • trunk/twindoi.sh

    r75 r80  
    11#! /bin/sh 
    22#+ 
     3# 
    34# NAME 
    45# ==== 
     
    5758# - fplod 2008-05-05T14:26:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
    5859# 
    59 * usage of xml(starlet) for doi extraction in xml file 
     60 * usage of xml(starlet) for doi extraction in xml file 
    6061# 
    6162# - fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    6263# 
    63 * consolidation and homogeneisation 
     64 * consolidation and homogeneisation 
    6465# 
    6566# - smasson 2007-06-20T16:11:47Z 
    6667# 
    67 #  * creation 
     68#   * creation 
     69# 
    6870#- 
    6971# 
     
    7981command=$(basename ${0}) 
    8082log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    81 log=/tmp/${command}.${log_date} 
     83log=/tmp/$(basename ${command} .sh).${log_date} 
    8284# 
    8385usage=" Usage : ${command} -i filein -t type" 
  • trunk/user_html.xsl

    r76 r80  
    66 
    77<!--rst 
     8 
    89NAME 
    910==== 
Note: See TracChangeset for help on using the changeset viewer.