Changeset 145


Ignore:
Timestamp:
02/27/12 17:30:47 (12 years ago)
Author:
pinsard
Message:

revisiting tests

Location:
trunk
Files:
2 added
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/docs/docs_dev/source/index_guides.rst

    r144 r145  
    2929 
    3030   guides/contributing 
     31   guides/rundemotest 
    3132   guides/builddoc 
    3233   guides/install 
  • trunk/makefile

    r115 r145  
    66# 
    77# $Id$ 
     8# 
     9# $URL$ 
     10# 
     11# - fplod 20120227 
     12#    
     13#   * move demo1 and nemo1 in tests 
    814# 
    915# - fplod 20110701T123529Z cratos.locean-ipsl.upmc.fr (Linux) 
     
    124130.PHONY : \ 
    125131test \ 
    126 test_demo1 \ 
    127 test_nemo1 \ 
    128132test_raw \ 
    129133test_raw_demo1 \ 
     
    154158        @echo "\$$ make before" 
    155159        @echo "" 
    156         @echo "Identify bibliography databank " 
    157         @echo "" 
    158         @echo "for example for $(PRODUCT) demo1:" 
    159         @echo "\$$ ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml" 
    160         @echo "" 
    161         @echo "for example for NEMO Survey :" 
    162         @echo "\$$ ln -sf $(DIRSRC)/data/biball.xml $(DIRTMP)/biblio.xml" 
    163         @echo "" 
    164         @echo "for example for short NEMO Survey :" 
    165         @echo "\$$ ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml" 
    166         @echo "" 
    167160        @echo "check for duplicate DOI; for example :" 
    168161        @echo "\$$ ./twindoi.sh -i $(DIRTMP)/biblio.xml -t xml" 
    169162        @echo "" 
    170         @echo "Identify user databank; for example :" 
    171         @echo "" 
    172         @echo "for example for $(PRODUCT) demo1:" 
    173         @echo "\$$ ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml" 
    174         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    175         @echo "" 
    176         @echo "for example for NEMO Survey (short and long):" 
    177         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml" 
    178         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    179         @echo "" 
    180         @echo "Define your main page;  for example :" 
    181         @echo "" 
    182         @echo "for example for $(PRODUCT) demo1:" 
    183         @echo "\$$ ln -sf $(DIRSRC)/data/maindemo1.xml $(DIRTMP)/main.xml" 
    184         @echo "" 
    185         @echo "for example for NEMO Survey (short and long):" 
    186         @echo "\$$ ln -sf $(DIRSRC)/data/mainnemo.xml $(DIRTMP)/main.xml" 
    187         @echo "" 
    188         @echo "Following commands are available to build outputs :" 
    189         @echo "\$$ make html" 
    190         @echo " " 
    191163        @echo "Check for DocBook 5 validity : " 
    192164        @echo "\$$ make dbkcheck" 
     
    245217        -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    246218        -@rm -f $(DIRTMP)/years_gnuplot.gnu 
    247         -@rm -f $(DIRTMP)/years.ploticus 
    248219        -@rm -f $(DIRTMP)/$(PRODUCT)02.xml 
    249220        -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err 
     
    780751$(DIRSRC)/bibopa.sh 
    781752        $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en 
    782  
    783 test_demo1 : 
    784         ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml 
    785         ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml 
    786         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    787         make -f $(DIRSRC)/makefile clean 
    788         make -f $(DIRSRC)/makefile before 
    789         make -f $(DIRSRC)/makefile html 
    790  
    791 test_nemo1 : 
    792         ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml 
    793         ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml 
    794         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    795         make -f $(DIRSRC)/makefile clean 
    796         make -f $(DIRSRC)/makefile before 
    797         make -f $(DIRSRC)/makefile html 
  • trunk/tests/demo1.sh

    r142 r145  
    1 # module : 
    2 # génération des pages superbib 
     1#! /bin/sh -x 
     2# 
     3# 
     4# .. program:: test_demo1 
     5# 
     6# ========== 
     7# test_demo1 
     8# ========== 
     9# 
     10# SYNOPSIS 
     11# ======== 
     12# 
     13# :: 
     14# 
     15#   $ tests/test_demo1 
     16# 
     17# DESCRIPTION 
     18# =========== 
     19# 
     20# demo1 
     21# 
     22# CODING 
     23# ====== 
     24# 
     25# this file has minimal lines - non env. checking 
     26# 
     27# TODO 
     28# ==== 
     29# 
     30# rename user.dtd 
    331# 
    432# EVOLUTIONS 
     
    735# $Id$ 
    836# 
    9 # - fplod 20110701T123529Z cratos.locean-ipsl.upmc.fr (Linux) 
     37# $URL$ 
    1038# 
    11 #   * add "Check SUPERBIB requirements in main.xml : " usage of checkmain.sh 
    12 #     only procedure instructions 
    13 #    
    14 # - fplod 20110701T105417Z cratos.locean-ipsl.upmc.fr (Linux) 
     39# - fplod 20120227 
    1540# 
    16 #   * contact is no more define here. see authorgroup/author[1]/email 
    17 #     in main.xml 
     41#   * extracted from makefile 
    1842# 
    19 # - fplod 20110629T124212Z cratos.locean-ipsl.upmc.fr (Linux) 
    20 # 
    21 #   * introduce rest 
    22 # 
    23 # - fplod 20100111T140001Z aedon.locean-ipsl.upmc.fr (Darwin) 
    24 # 
    25 #   * usage of makepp for design 
    26 # 
    27 # - fplod 2008-12-19T10:56:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
    28 # 
    29 #   * rename doc to design 
    30 # 
    31 # fplod 2008-09-17T15:37:10Z aedon.locean-ipsl.upmc.fr (Darwin) 
    32 # parametrization of "affreux sed" 
    33 # add test_demo1 and test_nemo1 
    34 # fplod 2008-05-07T14:27:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
    35 # add test 
    36 # fplod 2008-04-30T09:52:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    37 # chgt for dbk5 
    38 # fplod 2008-04-28T10:27:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
    39 # add .PHONY to make possible usage of makeppgraph 
    40 # get rid of tidy 
    41 # introduce URLPUBLISH 
    42 # fplod 2008-04-18T10:24:13Z aedon.locean-ipsl.upmc.fr (Darwin) 
    43 # add year_ploticus.xsl (replacing years_gnuplot.xsl) 
    44 # fplod 2007-11-22T09:57:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    45 # replace --output parameter by --stringparam base.dir 
    46 # according to Bob Stayton recommandation in 
    47 # http://lists.oasis-open.org/archives/docbook-apps/200711/msg00095.html 
    48 # fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
    49 # add linkcheck 
    50 # ++ la génération de pdf ne marchent pas bien sans doute à cause des images top 
    51 # fplod 2007-09-28T08:56:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
    52 # add before and install targets 
    53 # fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    54 # change hard coded DIRBASE 
    55 # fplod 2007-05-21T14:01:20Z aedon.locean-ipsl.upmc.fr (Darwin) 
    56 # ajout du plot nbpub/year 
    57 # fplod 2007-03-30T09:53:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    58 # creation 
    59 # 
    60 PRODUCT = \ 
    61 superbib 
    62  
    63 DIRBASE = \ 
    64 ./ 
    65  
    66 DIRSRC = \ 
    67 $(DIRBASE)/ 
    68  
    69 DIRTMP = \ 
    70 ./ 
    71  
    72 DIRXML = \ 
    73 $(DIRBASE)/xml/ 
    74  
    75 DIRDESIGN = \ 
    76 $(DIRBASE)/design/ 
    77  
    78 DIRWWW = \ 
    79 /tmp/$(PRODUCT)/ 
    80  
    81 DIRSPHINX = \ 
    82 /tmp/$(PRODUCT)/sphinx_tmpdir/ 
    83  
    84 # here are some examples of DIRPUBLISH/URLPUBLISH, the first on for Seb on his Mac, 
    85 # 
    86 # the real one for NEMO is opatlod@cerbere.locean-ispl.upmc.fr:NEMO/general/biblio_new/ 
    87 # 
    88 # comment all of them and define your own 
    89 # 
    90 DIRPUBLISH = \ 
    91 smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 
    92  
    93 URLPUBLISH = \ 
    94 none 
    95  
    96 # the second one for me (Françoise) on my Mac aedon 
    97 #DIRPUBLISH = \ 
    98 #fplod@aedon.locean-ipsl.upmc.fr:Sites/$(PRODUCT)demo/ 
    99  
    100 #URLPUBLISH = \ 
    101 #none 
    102  
    103 # the third for me (Françoise) on my home page at LOCEAN 
    104 # http://www.locean-ipsl.upmc.fr/~fplod/superbibdemo/ 
    105 #DIRPUBLISH = \ 
    106 #none 
    107  
    108 #URLPUBLISH = \ 
    109 #http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)demo/ 
    110  
    111 MAKEDATE = \ 
    112 `date -u +"%Y-%m-%dT%H:%M:%SZ"` 
    113  
    114 XSLPARAMHTML = \ 
    115 --param makedate "'$(MAKEDATE)'" \ 
    116 --param html.stylesheet "'../../style.css ../../$(PRODUCT).css'" \ 
    117 --param generate.article.toc '0' \ 
    118 --param generate.section.toc.level '0' \ 
    119 --param citerefentry.link '1' 
    120  
    121 IMAGES = \ 
    122 $(DIRSRC)/images/globalicondl11x10_up.gif 
    123  
    124 .PHONY : \ 
    125 test \ 
    126 test_demo1 \ 
    127 test_nemo1 \ 
    128 test_raw \ 
    129 test_raw_demo1 \ 
    130 test_raw_nemo1 \ 
    131 test_raw_nemoall \ 
    132 dbkcheck \ 
    133 all \ 
    134 before \ 
    135 clean \ 
    136 design \ 
    137 help \ 
    138 html \ 
    139 html_en \ 
    140 rest \ 
    141 rest_en \ 
    142 htmllinkchecka \ 
    143 htmllinkcheckb \ 
    144 install \ 
    145 pdf 
    146  
    147 help : 
    148         @echo "Define in the makefile localisations of :" 
    149         @echo " - sources (DIRSRC) where you \"svn checkout\" $(PRODUCT)" 
    150         @echo " - temporary Web pages (DIRWWW), where you can check links before publication" 
    151         @echo " - published Web pages (DIRPUBLISH/URLPUBLISH)" 
    152         @echo "" 
    153         @echo "Prepare output directories :" 
    154         @echo "\$$ make before" 
    155         @echo "" 
    156         @echo "Identify bibliography databank " 
    157         @echo "" 
    158         @echo "for example for $(PRODUCT) demo1:" 
    159         @echo "\$$ ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml" 
    160         @echo "" 
    161         @echo "for example for NEMO Survey :" 
    162         @echo "\$$ ln -sf $(DIRSRC)/data/biball.xml $(DIRTMP)/biblio.xml" 
    163         @echo "" 
    164         @echo "for example for short NEMO Survey :" 
    165         @echo "\$$ ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml" 
    166         @echo "" 
    167         @echo "check for duplicate DOI; for example :" 
    168         @echo "\$$ ./twindoi.sh -i $(DIRTMP)/biblio.xml -t xml" 
    169         @echo "" 
    170         @echo "Identify user databank; for example :" 
    171         @echo "" 
    172         @echo "for example for $(PRODUCT) demo1:" 
    173         @echo "\$$ ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml" 
    174         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    175         @echo "" 
    176         @echo "for example for NEMO Survey (short and long):" 
    177         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml" 
    178         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    179         @echo "" 
    180         @echo "Define your main page;  for example :" 
    181         @echo "" 
    182         @echo "for example for $(PRODUCT) demo1:" 
    183         @echo "\$$ ln -sf $(DIRSRC)/data/maindemo1.xml $(DIRTMP)/main.xml" 
    184         @echo "" 
    185         @echo "for example for NEMO Survey (short and long):" 
    186         @echo "\$$ ln -sf $(DIRSRC)/data/mainnemo.xml $(DIRTMP)/main.xml" 
    187         @echo "" 
    188         @echo "Following commands are available to build outputs :" 
    189         @echo "\$$ make html" 
    190         @echo " " 
    191         @echo "Check for DocBook 5 validity : " 
    192         @echo "\$$ make dbkcheck" 
    193         @echo " " 
    194         @echo "Check SUPERBIB requirements in main.xml : " 
    195         @echo "\$$ ./checkmain.sh -i $(DIRTMP)/main.xml" 
    196         @echo " " 
    197         @echo "Check links before installation : " 
    198         @echo "\$$ make htmllinkcheckb" 
    199         @echo " " 
    200         @echo "Last step = installation" 
    201         @echo "\$$ make install" 
    202         @echo " " 
    203         @echo "Check links after installation : " 
    204         @echo "\$$ make htmllinkchecka" 
    205         @echo " " 
    206         @echo "if you move this product to an other place, " 
    207         @echo "change parameters in the call sequence of $(DIRSRC)/before.sh and $(DIRSRC)/install.sh" 
    208         @echo "and in the call sequence of in $(DIRSRC)/install.sh" 
    209         @echo "in this makefile" 
    210         @echo " " 
    211         @echo " " 
    212         @echo " " 
    213         @echo "for contributors at LOCEAN:" 
    214         @echo "\$$ export PATH=\$$PATH:/usr/home/fplod/src/schema_ws/" 
    215         @echo "\$$ make design" 
    216  
    217 before : 
    218         @$(DIRSRC)/before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -multi -l en -m 2 
    219         mkdir $(DIRSPHINX) 
    220  
    221 install : 
    222         $(DIRSRC)/install.sh -w $(DIRWWW) -p $(DIRPUBLISH) 
    223         $(DIRSRC)/install.sh -w $(DIRWWW) -u $(URLPUBLISH) 
    224 clean : 
    225         -@rm -fr $(DIRWWW)/ 
    226         -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.txt 
    227         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bib 
    228         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.tex 
    229         -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.xml 
    230         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.xml 
    231         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bbl 
    232         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.blg 
    233         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.out 
    234         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.aux 
    235         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.dvi 
    236         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.log 
    237         -@rm -f $(DIRTMP)/bibnemo1.xml 
    238         -@rm -f $(DIRTMP)/bibnemo1.txt 
    239         -@rm -f $(DIRTMP)/bibnemoall.xml 
    240         -@rm -f $(DIRTMP)/bibnemoall.txt 
    241         -@rm -f $(DIRTMP)/select_id.xml 
    242         -@rm -f $(DIRTMP)/main_full.xml 
    243         -@rm -f $(DIRTMP)/$(PRODUCT)01.xml 
    244         -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.log 
    245         -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    246         -@rm -f $(DIRTMP)/years_gnuplot.gnu 
    247         -@rm -f $(DIRTMP)/years.ploticus 
    248         -@rm -f $(DIRTMP)/$(PRODUCT)02.xml 
    249         -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err 
    250         -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.log 
    251         -@rm -f $(DIRTMP)/$(PRODUCT)many01.xml 
    252         -@rm -f $(DIRTMP)/$(PRODUCT)many02.xml 
    253         -@rm -f $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    254         -@rm -f $(DIRTMP)/user_db.xml 
    255         -@rm -f $(DIRTMP)/template_beforesed.php 
    256         -@rm -f $(DIRTMP)/template_db.xml 
    257  
    258 dbkcheck : 
    259         @-rm $(DIRTMP)/err_xmlstarlet_xsd 2> /dev/null 
    260         @-for file in $(DIRTMP)/biblio.xml $(DIRTMP)/*_full.xml $(DIRTMP)/select_id.xml $(DIRTMP)/$(PRODUCT)01.xml $(DIRTMP)/$(PRODUCT)02.xml $(DIRTMP)/$(PRODUCT)many01.xml $(DIRTMP)/$(PRODUCT)many02.xml $(DIRTMP)/user_db.xml $(DIRTMP)/template_db.xml; do \ 
    261         xml val --err \ 
    262         --xsd http://www.docbook.org/xml/5.0/xsd/docbook.xsd \ 
    263         $${file} 1>> $(DIRTMP)/err_xmlstarlet_xsd 2>&1; done 
    264         @echo "check for valid diag for each file in $(DIRTMP)/err_xmlstarlet_xsd" 
    265  
    266  
    267 all : \ 
    268 html 
    269  
    270 html : \ 
    271 html_en 
    272  
    273 rest : \ 
    274 rest_en 
    275  
    276 design : \ 
    277 $(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \ 
    278 $(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg 
    279  
    280 htmllinkcheckb : 
    281         @linkchecker.sh -d $(DIRWWW) 
    282  
    283 htmllinkchecka : 
    284         @linkchecker.sh -d $(DIRPUBLISH) 
    285         @linkchecker.sh -u $(URLPUBLISH) 
    286  
    287 rest_en : \ 
    288 $(DIRWWW)/en/one/main.php \ 
    289 $(DIRWWW)/en/one/template.php \ 
    290 $(DIRSPHINX)/$(PRODUCT)00.rst \ 
    291 $(DIRSPHINX)/$(PRODUCT)01.rst \ 
    292 $(DIRSPHINX)/$(PRODUCT)02.rst \ 
    293 $(DIRSPHINX)/$(PRODUCT)01/ \ 
    294 $(DIRSPHINX)/$(PRODUCT)02/ \ 
    295 $(DIRSPHINX)/user.rst 
    296  
    297 html_en : \ 
    298 $(DIRWWW)/en/one/main.php \ 
    299 $(DIRWWW)/en/one/template.php \ 
    300 $(DIRWWW)/en/one/$(PRODUCT)00.html \ 
    301 $(DIRWWW)/en/one/$(PRODUCT)01.html \ 
    302 $(DIRWWW)/en/one/$(PRODUCT)02.html \ 
    303 $(DIRWWW)/en/many/$(PRODUCT)01/ \ 
    304 $(DIRWWW)/en/many/$(PRODUCT)02/ \ 
    305 $(DIRWWW)/en/one/user.html 
    306  
    307 pdf_en : \ 
    308 $(DIRTMP)/$(PRODUCT)01.pdf \ 
    309 $(DIRTMP)/$(PRODUCT)02.pdf 
    310  
    311 $(DIRSPHINX)/$(PRODUCT)00.rst : \ 
    312 $(DIRTMP)/biblio.xml \ 
    313 $(DIRSRC)/db_rest.xsl 
    314         @xsltproc \ 
    315         --output $@ \ 
    316         $(DIRSRC)/db_rest.xsl \ 
    317         $< 
    318  
    319 $(DIRWWW)/en/one/$(PRODUCT)00.html : \ 
    320 $(DIRTMP)/biblio.xml 
    321         @xsltproc \ 
    322         --output $@ \ 
    323         http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ 
    324         $< 
    325  
    326 $(DIRWWW)/en/one/main.php : \ 
    327 $(DIRTMP)/main_full.xml \ 
    328 $(DIRSRC)/$(PRODUCT).css \ 
    329 $(DIRSRC)/style.css \ 
    330 $(DIRSRC)/main_html.xsl \ 
    331 $(DIRSRC)/message_lang.xsl \ 
    332 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    333 $(DIRSRC)/form_html.xsl 
    334         @xsltproc \ 
    335         $(XSLPARAMHTML) \ 
    336         --output $@ \ 
    337         $(DIRSRC)/main_html.xsl \ 
    338         $< 
    339  
    340 $(DIRSPHINX)/$(PRODUCT)01.rst : \ 
    341 $(DIRTMP)/$(PRODUCT)01.xml \ 
    342 $(DIRWWW)/images/years.png \ 
    343 $(DIRSRC)/$(PRODUCT).css \ 
    344 $(DIRSRC)/style.css \ 
    345 $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    346 $(DIRSRC)/db_rest.xsl \ 
    347 $(DIRSRC)/message_lang.xsl \ 
    348 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    349         @xsltproc \ 
    350         $(XSLPARAMHTML) \ 
    351         --output $@ \ 
    352         $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    353         $< 
    354  
    355 $(DIRWWW)/en/one/$(PRODUCT)01.html : \ 
    356 $(DIRTMP)/$(PRODUCT)01.xml \ 
    357 $(DIRWWW)/images/years.png \ 
    358 $(DIRSRC)/$(PRODUCT).css \ 
    359 $(DIRSRC)/style.css \ 
    360 $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    361 $(DIRSRC)/message_lang.xsl \ 
    362 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    363         @xsltproc \ 
    364         $(XSLPARAMHTML) \ 
    365         --output $@ \ 
    366         $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    367         $< 
    368  
    369 $(DIRTMP)/$(PRODUCT)01.xml : \ 
    370 $(DIRTMP)/biblio.xml \ 
    371 $(DIRSRC)/$(PRODUCT)01_xml.xsl \ 
    372 $(DIRSRC)/message_lang.xsl \ 
    373 $(DIRSRC)/biblioentry_xml.xsl 
    374         @xsltproc \ 
    375         --output $@ \ 
    376         $(DIRSRC)/$(PRODUCT)01_xml.xsl \ 
    377         $< 
    378  
    379 $(DIRSPHINX)/$(PRODUCT)02.rst : \ 
    380 $(DIRTMP)/$(PRODUCT)02.xml \ 
    381 $(DIRSRC)/$(PRODUCT).css \ 
    382 $(DIRSRC)/style.css \ 
    383 $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    384 $(DIRSRC)/db_rest.xsl \ 
    385 $(DIRSRC)/message_lang.xsl \ 
    386 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    387         @xsltproc \ 
    388         $(XSLPARAMHTML) \ 
    389         --output $@ \ 
    390         $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    391         $< 
    392  
    393 $(DIRWWW)/en/one/$(PRODUCT)02.html : \ 
    394 $(DIRTMP)/$(PRODUCT)02.xml \ 
    395 $(DIRSRC)/$(PRODUCT).css \ 
    396 $(DIRSRC)/style.css \ 
    397 $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    398 $(DIRSRC)/message_lang.xsl \ 
    399 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    400         @xsltproc \ 
    401         $(XSLPARAMHTML) \ 
    402         --output $@ \ 
    403         $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    404         $< 
    405  
    406 $(DIRSPHINX)/$(PRODUCT)02/ :  
    407         @echo "not yet" 
    408  
    409 $(DIRWWW)/en/many/$(PRODUCT)02/ : \ 
    410 $(DIRTMP)/$(PRODUCT)many02.xml \ 
    411 $(DIRSRC)/$(PRODUCT).css \ 
    412 $(DIRSRC)/style.css \ 
    413 $(DIRSRC)/$(PRODUCT)many02_html.xsl \ 
    414 $(DIRSRC)/message_lang.xsl \ 
    415 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    416 $(DIRSRC)/form_html.xsl 
    417         @xsltproc \ 
    418         $(XSLPARAMHTML) \ 
    419         --param html.ext "'.php'" \ 
    420         --param base.dir "'$@/'" \ 
    421         $(DIRSRC)/$(PRODUCT)many02_html.xsl \ 
    422         $< 
    423         # affreux sed 
    424         @for file in $(DIRWWW)/en/many/$(PRODUCT)02/*.php; do \ 
    425          $(DIRSRC)/insertphp.sh -i $${file} -o $${file}_sed \ 
    426          -s $(DIRSRC)/insertphp_many.sed \ 
    427          -d 3; \ 
    428          mv $${file}_sed $${file} ; \ 
    429         done 
    430         @touch $@/ 
    431  
    432 $(DIRTMP)/$(PRODUCT)many02.xml : \ 
    433 $(DIRTMP)/biblio.xml \ 
    434 $(DIRSRC)/$(PRODUCT)many02_xml.xsl \ 
    435 $(DIRSRC)/message_lang.xsl \ 
    436 $(DIRSRC)/form_db.xsl \ 
    437 $(DIRSRC)/compilers_db.xsl \ 
    438 $(DIRSRC)/components_db.xsl \ 
    439 $(DIRSRC)/platforms_db.xsl \ 
    440 $(DIRSRC)/personal_db.xsl \ 
    441 $(DIRSRC)/comments_db.xsl \ 
    442 $(DIRSRC)/newreferences_db.xsl \ 
    443 $(DIRSRC)/processors_db.xsl \ 
    444 $(DIRSRC)/biblioentry_xml.xsl \ 
    445 $(DIRSRC)/correction_db.xsl \ 
    446 $(DIRSRC)/firstname_id.xsl \ 
    447 $(DIRSRC)/surname_id.xsl 
    448         @xsltproc \ 
    449         --param html.ext "'.php'" \ 
    450         --output $@ \ 
    451         $(DIRSRC)/$(PRODUCT)many02_xml.xsl \ 
    452         $< 
    453  
    454 $(DIRSPHINX)/$(PRODUCT)01/ :  
    455         @echo "not yet" 
    456  
    457 $(DIRWWW)/en/many/$(PRODUCT)01/ : \ 
    458 $(DIRTMP)/$(PRODUCT)many01.xml \ 
    459 $(DIRSRC)/$(PRODUCT).css \ 
    460 $(DIRSRC)/style.css \ 
    461 $(DIRSRC)/$(PRODUCT)many01_html.xsl \ 
    462 $(DIRSRC)/message_lang.xsl \ 
    463 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    464         @xsltproc \ 
    465         $(XSLPARAMHTML) \ 
    466         --param base.dir "'$@/'" \ 
    467         $(DIRSRC)/$(PRODUCT)many01_html.xsl \ 
    468         $< 
    469         @touch $@/ 
    470  
    471 $(DIRTMP)/$(PRODUCT)many01.xml : \ 
    472 $(DIRTMP)/biblio.xml \ 
    473 $(DIRSRC)/$(PRODUCT)many01_xml.xsl \ 
    474 $(DIRSRC)/message_lang.xsl \ 
    475 $(DIRSRC)/firstname_id.xsl \ 
    476 $(DIRSRC)/surname_id.xsl \ 
    477 $(DIRSRC)/table_authors.xsl \ 
    478 $(DIRSRC)/biblioentry_xml.xsl \ 
    479 $(DIRSRC)/correction_db.xsl 
    480         @xsltproc \ 
    481         --param html.ext "'.html'" \ 
    482         --output $@ \ 
    483         $(DIRSRC)/$(PRODUCT)many01_xml.xsl \ 
    484         $< 
    485  
    486 $(DIRTMP)/$(PRODUCT)02.xml : \ 
    487 $(DIRTMP)/biblio.xml \ 
    488 $(DIRSRC)/$(PRODUCT)02_xml.xsl \ 
    489 $(DIRSRC)/message_lang.xsl \ 
    490 $(DIRSRC)/firstname_id.xsl \ 
    491 $(DIRSRC)/surname_id.xsl \ 
    492 $(DIRSRC)/table_authors.xsl \ 
    493 $(DIRSRC)/biblioentry_xml.xsl \ 
    494 $(DIRSRC)/correction_db.xsl 
    495         @xsltproc \ 
    496         --param html.ext "'.html'" \ 
    497         --output $@ \ 
    498         $(DIRSRC)/$(PRODUCT)02_xml.xsl \ 
    499         $< 
    500  
    501 $(DIRTMP)/titlepage.$(PRODUCT).xsl : \ 
    502 $(DIRSRC)/titlepage.$(PRODUCT).xml 
    503         @xsltproc \ 
    504         --output $@ \ 
    505         http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 
    506         $< 
    507  
    508 $(DIRWWW)/images/years.png : \ 
    509 $(DIRTMP)/years.ploticus 
    510         @ploticus -o $@ png $< 
    511  
    512 $(DIRTMP)/years.ploticus : \ 
    513 $(DIRTMP)/biblio.xml \ 
    514 $(DIRSRC)/years_ploticus.xsl \ 
    515 $(DIRSRC)/biblioentry_xml.xsl \ 
    516 $(DIRSRC)/message_lang.xsl 
    517         @xsltproc \ 
    518         --param makedate "'$(MAKEDATE)'" \ 
    519         --output $@ \ 
    520         $(DIRSRC)/years_ploticus.xsl \ 
    521         $< 
    522  
    523 $(DIRTMP)/$(PRODUCT)01.pdf : \ 
    524 $(DIRTMP)/$(PRODUCT)01.xml \ 
    525 $(DIRSRC)/$(PRODUCT)_pdf.xsl 
    526         @dblatex \ 
    527         -b pdftex \ 
    528         -T simple \ 
    529         -o $@ \ 
    530         -d \ 
    531         -x "--nonet" \ 
    532         -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \ 
    533         $< \ 
    534         1> $(DIRTMP)/$(PRODUCT)01_dblatex.log \ 
    535         2> $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    536  
    537 $(DIRTMP)/$(PRODUCT)02.pdf : \ 
    538 $(DIRTMP)/biblio.xml \ 
    539 $(DIRSRC)/$(PRODUCT)_pdf.xsl 
    540         @dblatex \ 
    541         -b pdftex \ 
    542         -T simple \ 
    543         -o $@ \ 
    544         -d \ 
    545         -x "--nonet" \ 
    546         -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \ 
    547         $< \ 
    548         1> $(DIRTMP)/$(PRODUCT)02_dblatex.log \ 
    549         2> $(DIRTMP)/$(PRODUCT)02_dblatex.err 
    550  
    551 $(DIRTMP)/main_full.xml : \ 
    552 $(DIRSRC)/main.xml \ 
    553 $(DIRSRC)/select_form.php \ 
    554 $(DIRTMP)/select_id.xml 
    555         @xmllint \ 
    556         --xinclude \ 
    557         --nonet \ 
    558         --output $@ \ 
    559         $< 
    560  
    561 $(DIRTMP)/select_id.xml : \ 
    562 $(DIRTMP)/biblio.xml \ 
    563 $(DIRSRC)/select_id.xsl \ 
    564 $(DIRSRC)/firstname_id.xsl \ 
    565 $(DIRSRC)/surname_id.xsl 
    566         @xsltproc \ 
    567         --output $@ \ 
    568         $(DIRSRC)/select_id.xsl \ 
    569         $< 
    570  
    571 $(DIRSPHINX)/user.rst: \ 
    572 $(DIRTMP)/user_db.xml \ 
    573 $(DIRSRC)/db_rest.xsl \ 
    574 $(DIRSRC)/user_rest.xsl \ 
    575 $(DIRSRC)/message_lang.xsl \ 
    576 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    577 $(DIRSRC)/form_rest.xsl 
    578         @xsltproc \ 
    579         $(XSLPARAMHTML) \ 
    580         --output $@ \ 
    581         $(DIRSRC)/user_rest.xsl \ 
    582         $< 
    583  
    584 $(DIRWWW)/en/one/user.html : \ 
    585 $(DIRTMP)/user_db.xml \ 
    586 $(DIRSRC)/$(PRODUCT).css \ 
    587 $(DIRSRC)/style.css \ 
    588 $(DIRSRC)/user_html.xsl \ 
    589 $(DIRSRC)/message_lang.xsl \ 
    590 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    591 $(DIRSRC)/form_html.xsl 
    592         @xsltproc \ 
    593         $(XSLPARAMHTML) \ 
    594         --output $@ \ 
    595         $(DIRSRC)/user_html.xsl \ 
    596         $< 
    597  
    598 $(DIRTMP)/user_db.xml : \ 
    599 $(DIRTMP)/user.xml \ 
    600 $(DIRSRC)/user_db.xsl \ 
    601 $(DIRSRC)/message_lang.xsl \ 
    602 $(DIRSRC)/components_db.xsl \ 
    603 $(DIRSRC)/compilers_db.xsl \ 
    604 $(DIRSRC)/platforms_db.xsl \ 
    605 $(DIRSRC)/processors_db.xsl 
    606         @xsltproc \ 
    607         --output $@ \ 
    608         $(DIRSRC)/user_db.xsl \ 
    609         $< 
    610  
    611 $(DIRTMP)/user.xml : \ 
    612 $(DIRTMP)/user.dtd 
    613         -@xmllint --noout --valid $@ 
    614  
    615 $(DIRWWW)/en/one/template.php : \ 
    616 $(DIRTMP)/template_beforesed.php 
    617         # affreux sed 
    618         @$(DIRSRC)/insertphp.sh -i $< \ 
    619         -o $@ \ 
    620         -s $(DIRSRC)/insertphp_one.sed \ 
    621         -d 2 
    622  
    623 $(DIRTMP)/template_beforesed.php : \ 
    624 $(DIRTMP)/template_db.xml \ 
    625 $(DIRSRC)/$(PRODUCT).css \ 
    626 $(DIRSRC)/style.css \ 
    627 $(DIRSRC)/main_html.xsl \ 
    628 $(DIRSRC)/message_lang.xsl \ 
    629 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    630 $(DIRSRC)/form_html.xsl 
    631         @xsltproc \ 
    632         $(XSLPARAMHTML) \ 
    633         --param html.ext "'.php'" \ 
    634         --output $@ \ 
    635         $(DIRSRC)/main_html.xsl \ 
    636         $< 
    637  
    638 $(DIRTMP)/template_db.xml : \ 
    639 $(DIRTMP)/user.xml \ 
    640 $(DIRSRC)/template_db.xsl \ 
    641 $(DIRSRC)/message_lang.xsl \ 
    642 $(DIRSRC)/form_db.xsl \ 
    643 $(DIRSRC)/compilers_db.xsl \ 
    644 $(DIRSRC)/components_db.xsl \ 
    645 $(DIRSRC)/platforms_db.xsl \ 
    646 $(DIRSRC)/personal_db.xsl \ 
    647 $(DIRSRC)/comments_db.xsl \ 
    648 $(DIRSRC)/newreferences_db.xsl \ 
    649 $(DIRSRC)/processors_db.xsl \ 
    650 $(DIRSRC)/biblioentry_xml.xsl \ 
    651 $(DIRSRC)/correction_db.xsl 
    652         @xsltproc \ 
    653         --output $@ \ 
    654         $(DIRSRC)/template_db.xsl \ 
    655         $< 
    656  
    657 $(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
    658         @convert $< $@ 
    659  
    660 $(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot 
    661         @dot -Tsvg -o $@ $< 
    662  
    663 $(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \ 
    664 $(DIRSRC)/makefile 
    665         @makeppgraph --graphviz --output=$@ 
    666  
    667  
    668 test : \ 
    669 test_raw 
    670  
    671 test_raw : \ 
    672 test_raw_demo1_1 \ 
    673 test_raw_demo1_2 \ 
    674 test_raw_demo1_2_tex \ 
    675 test_raw_nemo1 \ 
    676 test_raw_nemoall 
    677  
    678 test_raw_demo1_1 : \ 
    679 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    680 $(DIRTMP)/bibdemo1_dbk5_1.xml \ 
    681 $(DIRTMP)/bibdemo1_dbk5_1.txt 
    682         @echo "test from xml to xml via raw form" 
    683         diff -b $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more 
    684         rm -i $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRTMP)/bibdemo1_dbk5_1.txt 
    685  
    686 $(DIRTMP)/bibdemo1_dbk5_1.txt : \ 
    687 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    688 $(DIRSRC)/superbib01_txt.xsl \ 
    689 $(DIRSRC)/biblioentry_xml.xsl 
    690         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    691         --output $@ \ 
    692         $(DIRSRC)/superbib01_txt.xsl \ 
    693         $< 
    694  
    695 $(DIRTMP)/bibdemo1_dbk5_1.xml : \ 
    696 $(DIRTMP)/bibdemo1_dbk5_1.txt \ 
    697 $(DIRSRC)/bibopa.sh 
    698         $(DIRSRC)/bibopa.sh -p demo1 -i $< -t raw -l fr 
    699  
    700 test_raw_demo1_2_tex : \ 
    701 $(DIRTMP)/bibdemo1_dbk5_2.dvi 
    702         @echo "test from xml to latex via bibtex form" 
    703  
    704 $(DIRTMP)/bibdemo1_dbk5_2.dvi : \ 
    705 $(DIRTMP)/bibdemo1_dbk5_2.tex \ 
    706 $(DIRTMP)/bibdemo1_dbk5_2.bib 
    707         cd $(DIRTMP)/ 
    708         latex bibdemo1_dbk5_2 
    709         bibtex bibdemo1_dbk5_2 
    710         latex bibdemo1_dbk5_2 
    711  
    712 $(DIRTMP)/bibdemo1_dbk5_2.tex : \ 
    713 $(DIRSRC)/data/superbib01.tex 
    714         @sed -e "s/bibliography{superbib01}/bibliography{bibdemo1_dbk5_2}/" \ 
    715         $< > $(DIRTMP)/bibdemo1_dbk5_2.tex 
    716          
    717 test_raw_demo1_2 : \ 
    718 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    719 $(DIRTMP)/bibdemo1_dbk5_2.xml \ 
    720 $(DIRTMP)/bibdemo1_dbk5_2.bib 
    721         @echo "test from xml to xml via bibtex form" 
    722         diff -b $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more 
    723         rm -i $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRTMP)/bibdemo1_dbk5_2.bib 
    724  
    725 $(DIRTMP)/bibdemo1_dbk5_2.bib : \ 
    726 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    727 $(DIRSRC)/superbib02_txt.xsl \ 
    728 $(DIRSRC)/biblioentry_xml.xsl 
    729         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    730         --output $@ \ 
    731         $(DIRSRC)/superbib02_txt.xsl \ 
    732         $< 
    733  
    734 $(DIRTMP)/bibdemo1_dbk5_2.xml : \ 
    735 $(DIRTMP)/bibdemo1_dbk5_2.bib \ 
    736 $(DIRSRC)/bibopa.sh \ 
    737 $(DIRSRC)/bibtexml2dbk.xsl \ 
    738 $(DIRSRC)/external/bibtex2xml.py 
    739         $(DIRSRC)/bibopa.sh -p demo1 -i $< -t bibtex -o fs -l fr 
    740  
    741 test_raw_nemo1 : \ 
    742 $(DIRSRC)/data/bibnemo1.xml \ 
    743 $(DIRTMP)/bibnemo1.xml \ 
    744 $(DIRTMP)/bibnemo1.txt 
    745         diff -b $(DIRTMP)/bibnemo1.xml $(DIRSRC)/data/bibnemo1.xml | more 
    746         rm -i $(DIRTMP)/bibnemo1.xml $(DIRTMP)/bibnemo1.txt 
    747  
    748 $(DIRTMP)/bibnemo1.txt : \ 
    749 $(DIRSRC)/data/bibnemo1.xml \ 
    750 $(DIRSRC)/superbib01_txt.xsl \ 
    751 $(DIRSRC)/biblioentry_xml.xsl 
    752         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    753         --output $@ \ 
    754         $(DIRSRC)/superbib01_txt.xsl \ 
    755         $< 
    756  
    757 $(DIRTMP)/bibnemo1.xml : \ 
    758 $(DIRTMP)/bibnemo1.txt \ 
    759 $(DIRSRC)/bibopa.sh 
    760         $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en 
    761  
    762 test_raw_nemoall : \ 
    763 $(DIRSRC)/data/biball.xml \ 
    764 $(DIRTMP)/bibnemoall.xml \ 
    765 $(DIRTMP)/bibnemoall.txt 
    766         diff -b $(DIRTMP)/bibnemoall.xml $(DIRSRC)/data/biball.xml | more 
    767         rm -i $(DIRTMP)/bibnemoall.xml $(DIRTMP)/bibnemoall.txt 
    768  
    769 $(DIRTMP)/bibnemoall.txt : \ 
    770 $(DIRSRC)/data/biball.xml \ 
    771 $(DIRSRC)/superbib01_txt.xsl \ 
    772 $(DIRSRC)/biblioentry_xml.xsl 
    773         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    774         --output $@ \ 
    775         $(DIRSRC)/superbib01_txt.xsl \ 
    776         $< 
    777  
    778 $(DIRTMP)/bibnemoall.xml : \ 
    779 $(DIRTMP)/bibnemoall.txt \ 
    780 $(DIRSRC)/bibopa.sh 
    781         $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en 
    782  
    783 test_demo1 : 
    784         ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml 
    785         ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml 
    786         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    787         make -f $(DIRSRC)/makefile clean 
    788         make -f $(DIRSRC)/makefile before 
    789         make -f $(DIRSRC)/makefile html 
    790  
    791 test_nemo1 : 
    792         ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml 
    793         ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml 
    794         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    795         make -f $(DIRSRC)/makefile clean 
    796         make -f $(DIRSRC)/makefile before 
    797         make -f $(DIRSRC)/makefile html 
     43#- 
     44ln -sf ${SUPERBIB}/data/bibdemo1_dbk5.xml ${SUPERBIB}/biblio.xml 
     45ln -sf ${SUPERBIB}/data/userdemo1.xml ${SUPERBIB}/user.xml 
     46ln -sf ${SUPERBIB}/data/usernemo.dtd ${SUPERBIB}/user.dtd 
     47ln -sf ${SUPERBIB}/data/maindemo1.xml ${SUPERBIB}/main.xml 
     48cd ${SUPERBIB} 
     49make clean 
     50make before 
     51make html 
  • trunk/tests/demo2.sh

    r142 r145  
    1 # module : 
    2 # génération des pages superbib 
     1#! /bin/sh -x 
     2# 
     3# .. program:: test_demo2 
     4# 
     5# ========== 
     6# test_demo2 
     7# ========== 
     8# 
     9# SYNOPSIS 
     10# ======== 
     11# 
     12# :: 
     13# 
     14#   $ tests/test_demo2 
     15# 
     16# DESCRIPTION 
     17# =========== 
     18# 
     19# demo2 
     20# 
     21# CODING 
     22# ====== 
     23# 
     24# this file has minimal lines - non env. checking 
     25# 
     26# TODO 
     27# ==== 
    328# 
    429# EVOLUTIONS 
     
    732# $Id$ 
    833# 
    9 # - fplod 20110701T123529Z cratos.locean-ipsl.upmc.fr (Linux) 
     34# $URL$ 
    1035# 
    11 #   * add "Check SUPERBIB requirements in main.xml : " usage of checkmain.sh 
    12 #     only procedure instructions 
    13 #    
    14 # - fplod 20110701T105417Z cratos.locean-ipsl.upmc.fr (Linux) 
     36# - fplod 20120227 
    1537# 
    16 #   * contact is no more define here. see authorgroup/author[1]/email 
    17 #     in main.xml 
     38#   * extracted from makefile 
    1839# 
    19 # - fplod 20110629T124212Z cratos.locean-ipsl.upmc.fr (Linux) 
    20 # 
    21 #   * introduce rest 
    22 # 
    23 # - fplod 20100111T140001Z aedon.locean-ipsl.upmc.fr (Darwin) 
    24 # 
    25 #   * usage of makepp for design 
    26 # 
    27 # - fplod 2008-12-19T10:56:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
    28 # 
    29 #   * rename doc to design 
    30 # 
    31 # fplod 2008-09-17T15:37:10Z aedon.locean-ipsl.upmc.fr (Darwin) 
    32 # parametrization of "affreux sed" 
    33 # add test_demo1 and test_nemo1 
    34 # fplod 2008-05-07T14:27:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
    35 # add test 
    36 # fplod 2008-04-30T09:52:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    37 # chgt for dbk5 
    38 # fplod 2008-04-28T10:27:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
    39 # add .PHONY to make possible usage of makeppgraph 
    40 # get rid of tidy 
    41 # introduce URLPUBLISH 
    42 # fplod 2008-04-18T10:24:13Z aedon.locean-ipsl.upmc.fr (Darwin) 
    43 # add year_ploticus.xsl (replacing years_gnuplot.xsl) 
    44 # fplod 2007-11-22T09:57:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    45 # replace --output parameter by --stringparam base.dir 
    46 # according to Bob Stayton recommandation in 
    47 # http://lists.oasis-open.org/archives/docbook-apps/200711/msg00095.html 
    48 # fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
    49 # add linkcheck 
    50 # ++ la génération de pdf ne marchent pas bien sans doute à cause des images top 
    51 # fplod 2007-09-28T08:56:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
    52 # add before and install targets 
    53 # fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    54 # change hard coded DIRBASE 
    55 # fplod 2007-05-21T14:01:20Z aedon.locean-ipsl.upmc.fr (Darwin) 
    56 # ajout du plot nbpub/year 
    57 # fplod 2007-03-30T09:53:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    58 # creation 
    59 # 
    60 PRODUCT = \ 
    61 superbib 
    62  
    63 DIRBASE = \ 
    64 ./ 
    65  
    66 DIRSRC = \ 
    67 $(DIRBASE)/ 
    68  
    69 DIRTMP = \ 
    70 ./ 
    71  
    72 DIRXML = \ 
    73 $(DIRBASE)/xml/ 
    74  
    75 DIRDESIGN = \ 
    76 $(DIRBASE)/design/ 
    77  
    78 DIRWWW = \ 
    79 /tmp/$(PRODUCT)/ 
    80  
    81 DIRSPHINX = \ 
    82 /tmp/$(PRODUCT)/sphinx_tmpdir/ 
    83  
    84 # here are some examples of DIRPUBLISH/URLPUBLISH, the first on for Seb on his Mac, 
    85 # 
    86 # the real one for NEMO is opatlod@cerbere.locean-ispl.upmc.fr:NEMO/general/biblio_new/ 
    87 # 
    88 # comment all of them and define your own 
    89 # 
    90 DIRPUBLISH = \ 
    91 smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 
    92  
    93 URLPUBLISH = \ 
    94 none 
    95  
    96 # the second one for me (Françoise) on my Mac aedon 
    97 #DIRPUBLISH = \ 
    98 #fplod@aedon.locean-ipsl.upmc.fr:Sites/$(PRODUCT)demo/ 
    99  
    100 #URLPUBLISH = \ 
    101 #none 
    102  
    103 # the third for me (Françoise) on my home page at LOCEAN 
    104 # http://www.locean-ipsl.upmc.fr/~fplod/superbibdemo/ 
    105 #DIRPUBLISH = \ 
    106 #none 
    107  
    108 #URLPUBLISH = \ 
    109 #http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)demo/ 
    110  
    111 MAKEDATE = \ 
    112 `date -u +"%Y-%m-%dT%H:%M:%SZ"` 
    113  
    114 XSLPARAMHTML = \ 
    115 --param makedate "'$(MAKEDATE)'" \ 
    116 --param html.stylesheet "'../../style.css ../../$(PRODUCT).css'" \ 
    117 --param generate.article.toc '0' \ 
    118 --param generate.section.toc.level '0' \ 
    119 --param citerefentry.link '1' 
    120  
    121 IMAGES = \ 
    122 $(DIRSRC)/images/globalicondl11x10_up.gif 
    123  
    124 .PHONY : \ 
    125 test \ 
    126 test_demo1 \ 
    127 test_nemo1 \ 
    128 test_raw \ 
    129 test_raw_demo1 \ 
    130 test_raw_nemo1 \ 
    131 test_raw_nemoall \ 
    132 dbkcheck \ 
    133 all \ 
    134 before \ 
    135 clean \ 
    136 design \ 
    137 help \ 
    138 html \ 
    139 html_en \ 
    140 rest \ 
    141 rest_en \ 
    142 htmllinkchecka \ 
    143 htmllinkcheckb \ 
    144 install \ 
    145 pdf 
    146  
    147 help : 
    148         @echo "Define in the makefile localisations of :" 
    149         @echo " - sources (DIRSRC) where you \"svn checkout\" $(PRODUCT)" 
    150         @echo " - temporary Web pages (DIRWWW), where you can check links before publication" 
    151         @echo " - published Web pages (DIRPUBLISH/URLPUBLISH)" 
    152         @echo "" 
    153         @echo "Prepare output directories :" 
    154         @echo "\$$ make before" 
    155         @echo "" 
    156         @echo "Identify bibliography databank " 
    157         @echo "" 
    158         @echo "for example for $(PRODUCT) demo1:" 
    159         @echo "\$$ ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml" 
    160         @echo "" 
    161         @echo "for example for NEMO Survey :" 
    162         @echo "\$$ ln -sf $(DIRSRC)/data/biball.xml $(DIRTMP)/biblio.xml" 
    163         @echo "" 
    164         @echo "for example for short NEMO Survey :" 
    165         @echo "\$$ ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml" 
    166         @echo "" 
    167         @echo "check for duplicate DOI; for example :" 
    168         @echo "\$$ ./twindoi.sh -i $(DIRTMP)/biblio.xml -t xml" 
    169         @echo "" 
    170         @echo "Identify user databank; for example :" 
    171         @echo "" 
    172         @echo "for example for $(PRODUCT) demo1:" 
    173         @echo "\$$ ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml" 
    174         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    175         @echo "" 
    176         @echo "for example for NEMO Survey (short and long):" 
    177         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml" 
    178         @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 
    179         @echo "" 
    180         @echo "Define your main page;  for example :" 
    181         @echo "" 
    182         @echo "for example for $(PRODUCT) demo1:" 
    183         @echo "\$$ ln -sf $(DIRSRC)/data/maindemo1.xml $(DIRTMP)/main.xml" 
    184         @echo "" 
    185         @echo "for example for NEMO Survey (short and long):" 
    186         @echo "\$$ ln -sf $(DIRSRC)/data/mainnemo.xml $(DIRTMP)/main.xml" 
    187         @echo "" 
    188         @echo "Following commands are available to build outputs :" 
    189         @echo "\$$ make html" 
    190         @echo " " 
    191         @echo "Check for DocBook 5 validity : " 
    192         @echo "\$$ make dbkcheck" 
    193         @echo " " 
    194         @echo "Check SUPERBIB requirements in main.xml : " 
    195         @echo "\$$ ./checkmain.sh -i $(DIRTMP)/main.xml" 
    196         @echo " " 
    197         @echo "Check links before installation : " 
    198         @echo "\$$ make htmllinkcheckb" 
    199         @echo " " 
    200         @echo "Last step = installation" 
    201         @echo "\$$ make install" 
    202         @echo " " 
    203         @echo "Check links after installation : " 
    204         @echo "\$$ make htmllinkchecka" 
    205         @echo " " 
    206         @echo "if you move this product to an other place, " 
    207         @echo "change parameters in the call sequence of $(DIRSRC)/before.sh and $(DIRSRC)/install.sh" 
    208         @echo "and in the call sequence of in $(DIRSRC)/install.sh" 
    209         @echo "in this makefile" 
    210         @echo " " 
    211         @echo " " 
    212         @echo " " 
    213         @echo "for contributors at LOCEAN:" 
    214         @echo "\$$ export PATH=\$$PATH:/usr/home/fplod/src/schema_ws/" 
    215         @echo "\$$ make design" 
    216  
    217 before : 
    218         @$(DIRSRC)/before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -multi -l en -m 2 
    219         mkdir $(DIRSPHINX) 
    220  
    221 install : 
    222         $(DIRSRC)/install.sh -w $(DIRWWW) -p $(DIRPUBLISH) 
    223         $(DIRSRC)/install.sh -w $(DIRWWW) -u $(URLPUBLISH) 
    224 clean : 
    225         -@rm -fr $(DIRWWW)/ 
    226         -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.txt 
    227         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bib 
    228         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.tex 
    229         -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.xml 
    230         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.xml 
    231         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bbl 
    232         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.blg 
    233         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.out 
    234         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.aux 
    235         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.dvi 
    236         -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.log 
    237         -@rm -f $(DIRTMP)/bibnemo1.xml 
    238         -@rm -f $(DIRTMP)/bibnemo1.txt 
    239         -@rm -f $(DIRTMP)/bibnemoall.xml 
    240         -@rm -f $(DIRTMP)/bibnemoall.txt 
    241         -@rm -f $(DIRTMP)/select_id.xml 
    242         -@rm -f $(DIRTMP)/main_full.xml 
    243         -@rm -f $(DIRTMP)/$(PRODUCT)01.xml 
    244         -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.log 
    245         -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    246         -@rm -f $(DIRTMP)/years_gnuplot.gnu 
    247         -@rm -f $(DIRTMP)/years.ploticus 
    248         -@rm -f $(DIRTMP)/$(PRODUCT)02.xml 
    249         -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err 
    250         -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.log 
    251         -@rm -f $(DIRTMP)/$(PRODUCT)many01.xml 
    252         -@rm -f $(DIRTMP)/$(PRODUCT)many02.xml 
    253         -@rm -f $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    254         -@rm -f $(DIRTMP)/user_db.xml 
    255         -@rm -f $(DIRTMP)/template_beforesed.php 
    256         -@rm -f $(DIRTMP)/template_db.xml 
    257  
    258 dbkcheck : 
    259         @-rm $(DIRTMP)/err_xmlstarlet_xsd 2> /dev/null 
    260         @-for file in $(DIRTMP)/biblio.xml $(DIRTMP)/*_full.xml $(DIRTMP)/select_id.xml $(DIRTMP)/$(PRODUCT)01.xml $(DIRTMP)/$(PRODUCT)02.xml $(DIRTMP)/$(PRODUCT)many01.xml $(DIRTMP)/$(PRODUCT)many02.xml $(DIRTMP)/user_db.xml $(DIRTMP)/template_db.xml; do \ 
    261         xml val --err \ 
    262         --xsd http://www.docbook.org/xml/5.0/xsd/docbook.xsd \ 
    263         $${file} 1>> $(DIRTMP)/err_xmlstarlet_xsd 2>&1; done 
    264         @echo "check for valid diag for each file in $(DIRTMP)/err_xmlstarlet_xsd" 
    265  
    266  
    267 all : \ 
    268 html 
    269  
    270 html : \ 
    271 html_en 
    272  
    273 rest : \ 
    274 rest_en 
    275  
    276 design : \ 
    277 $(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \ 
    278 $(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg 
    279  
    280 htmllinkcheckb : 
    281         @linkchecker.sh -d $(DIRWWW) 
    282  
    283 htmllinkchecka : 
    284         @linkchecker.sh -d $(DIRPUBLISH) 
    285         @linkchecker.sh -u $(URLPUBLISH) 
    286  
    287 rest_en : \ 
    288 $(DIRWWW)/en/one/main.php \ 
    289 $(DIRWWW)/en/one/template.php \ 
    290 $(DIRSPHINX)/$(PRODUCT)00.rst \ 
    291 $(DIRSPHINX)/$(PRODUCT)01.rst \ 
    292 $(DIRSPHINX)/$(PRODUCT)02.rst \ 
    293 $(DIRSPHINX)/$(PRODUCT)01/ \ 
    294 $(DIRSPHINX)/$(PRODUCT)02/ \ 
    295 $(DIRSPHINX)/user.rst 
    296  
    297 html_en : \ 
    298 $(DIRWWW)/en/one/main.php \ 
    299 $(DIRWWW)/en/one/template.php \ 
    300 $(DIRWWW)/en/one/$(PRODUCT)00.html \ 
    301 $(DIRWWW)/en/one/$(PRODUCT)01.html \ 
    302 $(DIRWWW)/en/one/$(PRODUCT)02.html \ 
    303 $(DIRWWW)/en/many/$(PRODUCT)01/ \ 
    304 $(DIRWWW)/en/many/$(PRODUCT)02/ \ 
    305 $(DIRWWW)/en/one/user.html 
    306  
    307 pdf_en : \ 
    308 $(DIRTMP)/$(PRODUCT)01.pdf \ 
    309 $(DIRTMP)/$(PRODUCT)02.pdf 
    310  
    311 $(DIRSPHINX)/$(PRODUCT)00.rst : \ 
    312 $(DIRTMP)/biblio.xml \ 
    313 $(DIRSRC)/db_rest.xsl 
    314         @xsltproc \ 
    315         --output $@ \ 
    316         $(DIRSRC)/db_rest.xsl \ 
    317         $< 
    318  
    319 $(DIRWWW)/en/one/$(PRODUCT)00.html : \ 
    320 $(DIRTMP)/biblio.xml 
    321         @xsltproc \ 
    322         --output $@ \ 
    323         http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ 
    324         $< 
    325  
    326 $(DIRWWW)/en/one/main.php : \ 
    327 $(DIRTMP)/main_full.xml \ 
    328 $(DIRSRC)/$(PRODUCT).css \ 
    329 $(DIRSRC)/style.css \ 
    330 $(DIRSRC)/main_html.xsl \ 
    331 $(DIRSRC)/message_lang.xsl \ 
    332 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    333 $(DIRSRC)/form_html.xsl 
    334         @xsltproc \ 
    335         $(XSLPARAMHTML) \ 
    336         --output $@ \ 
    337         $(DIRSRC)/main_html.xsl \ 
    338         $< 
    339  
    340 $(DIRSPHINX)/$(PRODUCT)01.rst : \ 
    341 $(DIRTMP)/$(PRODUCT)01.xml \ 
    342 $(DIRWWW)/images/years.png \ 
    343 $(DIRSRC)/$(PRODUCT).css \ 
    344 $(DIRSRC)/style.css \ 
    345 $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    346 $(DIRSRC)/db_rest.xsl \ 
    347 $(DIRSRC)/message_lang.xsl \ 
    348 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    349         @xsltproc \ 
    350         $(XSLPARAMHTML) \ 
    351         --output $@ \ 
    352         $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    353         $< 
    354  
    355 $(DIRWWW)/en/one/$(PRODUCT)01.html : \ 
    356 $(DIRTMP)/$(PRODUCT)01.xml \ 
    357 $(DIRWWW)/images/years.png \ 
    358 $(DIRSRC)/$(PRODUCT).css \ 
    359 $(DIRSRC)/style.css \ 
    360 $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    361 $(DIRSRC)/message_lang.xsl \ 
    362 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    363         @xsltproc \ 
    364         $(XSLPARAMHTML) \ 
    365         --output $@ \ 
    366         $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    367         $< 
    368  
    369 $(DIRTMP)/$(PRODUCT)01.xml : \ 
    370 $(DIRTMP)/biblio.xml \ 
    371 $(DIRSRC)/$(PRODUCT)01_xml.xsl \ 
    372 $(DIRSRC)/message_lang.xsl \ 
    373 $(DIRSRC)/biblioentry_xml.xsl 
    374         @xsltproc \ 
    375         --output $@ \ 
    376         $(DIRSRC)/$(PRODUCT)01_xml.xsl \ 
    377         $< 
    378  
    379 $(DIRSPHINX)/$(PRODUCT)02.rst : \ 
    380 $(DIRTMP)/$(PRODUCT)02.xml \ 
    381 $(DIRSRC)/$(PRODUCT).css \ 
    382 $(DIRSRC)/style.css \ 
    383 $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    384 $(DIRSRC)/db_rest.xsl \ 
    385 $(DIRSRC)/message_lang.xsl \ 
    386 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    387         @xsltproc \ 
    388         $(XSLPARAMHTML) \ 
    389         --output $@ \ 
    390         $(DIRSRC)/$(PRODUCT)01_rest.xsl \ 
    391         $< 
    392  
    393 $(DIRWWW)/en/one/$(PRODUCT)02.html : \ 
    394 $(DIRTMP)/$(PRODUCT)02.xml \ 
    395 $(DIRSRC)/$(PRODUCT).css \ 
    396 $(DIRSRC)/style.css \ 
    397 $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    398 $(DIRSRC)/message_lang.xsl \ 
    399 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    400         @xsltproc \ 
    401         $(XSLPARAMHTML) \ 
    402         --output $@ \ 
    403         $(DIRSRC)/$(PRODUCT)01_html.xsl \ 
    404         $< 
    405  
    406 $(DIRSPHINX)/$(PRODUCT)02/ :  
    407         @echo "not yet" 
    408  
    409 $(DIRWWW)/en/many/$(PRODUCT)02/ : \ 
    410 $(DIRTMP)/$(PRODUCT)many02.xml \ 
    411 $(DIRSRC)/$(PRODUCT).css \ 
    412 $(DIRSRC)/style.css \ 
    413 $(DIRSRC)/$(PRODUCT)many02_html.xsl \ 
    414 $(DIRSRC)/message_lang.xsl \ 
    415 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    416 $(DIRSRC)/form_html.xsl 
    417         @xsltproc \ 
    418         $(XSLPARAMHTML) \ 
    419         --param html.ext "'.php'" \ 
    420         --param base.dir "'$@/'" \ 
    421         $(DIRSRC)/$(PRODUCT)many02_html.xsl \ 
    422         $< 
    423         # affreux sed 
    424         @for file in $(DIRWWW)/en/many/$(PRODUCT)02/*.php; do \ 
    425          $(DIRSRC)/insertphp.sh -i $${file} -o $${file}_sed \ 
    426          -s $(DIRSRC)/insertphp_many.sed \ 
    427          -d 3; \ 
    428          mv $${file}_sed $${file} ; \ 
    429         done 
    430         @touch $@/ 
    431  
    432 $(DIRTMP)/$(PRODUCT)many02.xml : \ 
    433 $(DIRTMP)/biblio.xml \ 
    434 $(DIRSRC)/$(PRODUCT)many02_xml.xsl \ 
    435 $(DIRSRC)/message_lang.xsl \ 
    436 $(DIRSRC)/form_db.xsl \ 
    437 $(DIRSRC)/compilers_db.xsl \ 
    438 $(DIRSRC)/components_db.xsl \ 
    439 $(DIRSRC)/platforms_db.xsl \ 
    440 $(DIRSRC)/personal_db.xsl \ 
    441 $(DIRSRC)/comments_db.xsl \ 
    442 $(DIRSRC)/newreferences_db.xsl \ 
    443 $(DIRSRC)/processors_db.xsl \ 
    444 $(DIRSRC)/biblioentry_xml.xsl \ 
    445 $(DIRSRC)/correction_db.xsl \ 
    446 $(DIRSRC)/firstname_id.xsl \ 
    447 $(DIRSRC)/surname_id.xsl 
    448         @xsltproc \ 
    449         --param html.ext "'.php'" \ 
    450         --output $@ \ 
    451         $(DIRSRC)/$(PRODUCT)many02_xml.xsl \ 
    452         $< 
    453  
    454 $(DIRSPHINX)/$(PRODUCT)01/ :  
    455         @echo "not yet" 
    456  
    457 $(DIRWWW)/en/many/$(PRODUCT)01/ : \ 
    458 $(DIRTMP)/$(PRODUCT)many01.xml \ 
    459 $(DIRSRC)/$(PRODUCT).css \ 
    460 $(DIRSRC)/style.css \ 
    461 $(DIRSRC)/$(PRODUCT)many01_html.xsl \ 
    462 $(DIRSRC)/message_lang.xsl \ 
    463 $(DIRTMP)/titlepage.$(PRODUCT).xsl 
    464         @xsltproc \ 
    465         $(XSLPARAMHTML) \ 
    466         --param base.dir "'$@/'" \ 
    467         $(DIRSRC)/$(PRODUCT)many01_html.xsl \ 
    468         $< 
    469         @touch $@/ 
    470  
    471 $(DIRTMP)/$(PRODUCT)many01.xml : \ 
    472 $(DIRTMP)/biblio.xml \ 
    473 $(DIRSRC)/$(PRODUCT)many01_xml.xsl \ 
    474 $(DIRSRC)/message_lang.xsl \ 
    475 $(DIRSRC)/firstname_id.xsl \ 
    476 $(DIRSRC)/surname_id.xsl \ 
    477 $(DIRSRC)/table_authors.xsl \ 
    478 $(DIRSRC)/biblioentry_xml.xsl \ 
    479 $(DIRSRC)/correction_db.xsl 
    480         @xsltproc \ 
    481         --param html.ext "'.html'" \ 
    482         --output $@ \ 
    483         $(DIRSRC)/$(PRODUCT)many01_xml.xsl \ 
    484         $< 
    485  
    486 $(DIRTMP)/$(PRODUCT)02.xml : \ 
    487 $(DIRTMP)/biblio.xml \ 
    488 $(DIRSRC)/$(PRODUCT)02_xml.xsl \ 
    489 $(DIRSRC)/message_lang.xsl \ 
    490 $(DIRSRC)/firstname_id.xsl \ 
    491 $(DIRSRC)/surname_id.xsl \ 
    492 $(DIRSRC)/table_authors.xsl \ 
    493 $(DIRSRC)/biblioentry_xml.xsl \ 
    494 $(DIRSRC)/correction_db.xsl 
    495         @xsltproc \ 
    496         --param html.ext "'.html'" \ 
    497         --output $@ \ 
    498         $(DIRSRC)/$(PRODUCT)02_xml.xsl \ 
    499         $< 
    500  
    501 $(DIRTMP)/titlepage.$(PRODUCT).xsl : \ 
    502 $(DIRSRC)/titlepage.$(PRODUCT).xml 
    503         @xsltproc \ 
    504         --output $@ \ 
    505         http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 
    506         $< 
    507  
    508 $(DIRWWW)/images/years.png : \ 
    509 $(DIRTMP)/years.ploticus 
    510         @ploticus -o $@ png $< 
    511  
    512 $(DIRTMP)/years.ploticus : \ 
    513 $(DIRTMP)/biblio.xml \ 
    514 $(DIRSRC)/years_ploticus.xsl \ 
    515 $(DIRSRC)/biblioentry_xml.xsl \ 
    516 $(DIRSRC)/message_lang.xsl 
    517         @xsltproc \ 
    518         --param makedate "'$(MAKEDATE)'" \ 
    519         --output $@ \ 
    520         $(DIRSRC)/years_ploticus.xsl \ 
    521         $< 
    522  
    523 $(DIRTMP)/$(PRODUCT)01.pdf : \ 
    524 $(DIRTMP)/$(PRODUCT)01.xml \ 
    525 $(DIRSRC)/$(PRODUCT)_pdf.xsl 
    526         @dblatex \ 
    527         -b pdftex \ 
    528         -T simple \ 
    529         -o $@ \ 
    530         -d \ 
    531         -x "--nonet" \ 
    532         -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \ 
    533         $< \ 
    534         1> $(DIRTMP)/$(PRODUCT)01_dblatex.log \ 
    535         2> $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    536  
    537 $(DIRTMP)/$(PRODUCT)02.pdf : \ 
    538 $(DIRTMP)/biblio.xml \ 
    539 $(DIRSRC)/$(PRODUCT)_pdf.xsl 
    540         @dblatex \ 
    541         -b pdftex \ 
    542         -T simple \ 
    543         -o $@ \ 
    544         -d \ 
    545         -x "--nonet" \ 
    546         -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \ 
    547         $< \ 
    548         1> $(DIRTMP)/$(PRODUCT)02_dblatex.log \ 
    549         2> $(DIRTMP)/$(PRODUCT)02_dblatex.err 
    550  
    551 $(DIRTMP)/main_full.xml : \ 
    552 $(DIRSRC)/main.xml \ 
    553 $(DIRSRC)/select_form.php \ 
    554 $(DIRTMP)/select_id.xml 
    555         @xmllint \ 
    556         --xinclude \ 
    557         --nonet \ 
    558         --output $@ \ 
    559         $< 
    560  
    561 $(DIRTMP)/select_id.xml : \ 
    562 $(DIRTMP)/biblio.xml \ 
    563 $(DIRSRC)/select_id.xsl \ 
    564 $(DIRSRC)/firstname_id.xsl \ 
    565 $(DIRSRC)/surname_id.xsl 
    566         @xsltproc \ 
    567         --output $@ \ 
    568         $(DIRSRC)/select_id.xsl \ 
    569         $< 
    570  
    571 $(DIRSPHINX)/user.rst: \ 
    572 $(DIRTMP)/user_db.xml \ 
    573 $(DIRSRC)/db_rest.xsl \ 
    574 $(DIRSRC)/user_rest.xsl \ 
    575 $(DIRSRC)/message_lang.xsl \ 
    576 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    577 $(DIRSRC)/form_rest.xsl 
    578         @xsltproc \ 
    579         $(XSLPARAMHTML) \ 
    580         --output $@ \ 
    581         $(DIRSRC)/user_rest.xsl \ 
    582         $< 
    583  
    584 $(DIRWWW)/en/one/user.html : \ 
    585 $(DIRTMP)/user_db.xml \ 
    586 $(DIRSRC)/$(PRODUCT).css \ 
    587 $(DIRSRC)/style.css \ 
    588 $(DIRSRC)/user_html.xsl \ 
    589 $(DIRSRC)/message_lang.xsl \ 
    590 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    591 $(DIRSRC)/form_html.xsl 
    592         @xsltproc \ 
    593         $(XSLPARAMHTML) \ 
    594         --output $@ \ 
    595         $(DIRSRC)/user_html.xsl \ 
    596         $< 
    597  
    598 $(DIRTMP)/user_db.xml : \ 
    599 $(DIRTMP)/user.xml \ 
    600 $(DIRSRC)/user_db.xsl \ 
    601 $(DIRSRC)/message_lang.xsl \ 
    602 $(DIRSRC)/components_db.xsl \ 
    603 $(DIRSRC)/compilers_db.xsl \ 
    604 $(DIRSRC)/platforms_db.xsl \ 
    605 $(DIRSRC)/processors_db.xsl 
    606         @xsltproc \ 
    607         --output $@ \ 
    608         $(DIRSRC)/user_db.xsl \ 
    609         $< 
    610  
    611 $(DIRTMP)/user.xml : \ 
    612 $(DIRTMP)/user.dtd 
    613         -@xmllint --noout --valid $@ 
    614  
    615 $(DIRWWW)/en/one/template.php : \ 
    616 $(DIRTMP)/template_beforesed.php 
    617         # affreux sed 
    618         @$(DIRSRC)/insertphp.sh -i $< \ 
    619         -o $@ \ 
    620         -s $(DIRSRC)/insertphp_one.sed \ 
    621         -d 2 
    622  
    623 $(DIRTMP)/template_beforesed.php : \ 
    624 $(DIRTMP)/template_db.xml \ 
    625 $(DIRSRC)/$(PRODUCT).css \ 
    626 $(DIRSRC)/style.css \ 
    627 $(DIRSRC)/main_html.xsl \ 
    628 $(DIRSRC)/message_lang.xsl \ 
    629 $(DIRTMP)/titlepage.$(PRODUCT).xsl \ 
    630 $(DIRSRC)/form_html.xsl 
    631         @xsltproc \ 
    632         $(XSLPARAMHTML) \ 
    633         --param html.ext "'.php'" \ 
    634         --output $@ \ 
    635         $(DIRSRC)/main_html.xsl \ 
    636         $< 
    637  
    638 $(DIRTMP)/template_db.xml : \ 
    639 $(DIRTMP)/user.xml \ 
    640 $(DIRSRC)/template_db.xsl \ 
    641 $(DIRSRC)/message_lang.xsl \ 
    642 $(DIRSRC)/form_db.xsl \ 
    643 $(DIRSRC)/compilers_db.xsl \ 
    644 $(DIRSRC)/components_db.xsl \ 
    645 $(DIRSRC)/platforms_db.xsl \ 
    646 $(DIRSRC)/personal_db.xsl \ 
    647 $(DIRSRC)/comments_db.xsl \ 
    648 $(DIRSRC)/newreferences_db.xsl \ 
    649 $(DIRSRC)/processors_db.xsl \ 
    650 $(DIRSRC)/biblioentry_xml.xsl \ 
    651 $(DIRSRC)/correction_db.xsl 
    652         @xsltproc \ 
    653         --output $@ \ 
    654         $(DIRSRC)/template_db.xsl \ 
    655         $< 
    656  
    657 $(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
    658         @convert $< $@ 
    659  
    660 $(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot 
    661         @dot -Tsvg -o $@ $< 
    662  
    663 $(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \ 
    664 $(DIRSRC)/makefile 
    665         @makeppgraph --graphviz --output=$@ 
    666  
    667  
    668 test : \ 
    669 test_raw 
    670  
    671 test_raw : \ 
    672 test_raw_demo1_1 \ 
    673 test_raw_demo1_2 \ 
    674 test_raw_demo1_2_tex \ 
    675 test_raw_nemo1 \ 
    676 test_raw_nemoall 
    677  
    678 test_raw_demo1_1 : \ 
    679 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    680 $(DIRTMP)/bibdemo1_dbk5_1.xml \ 
    681 $(DIRTMP)/bibdemo1_dbk5_1.txt 
    682         @echo "test from xml to xml via raw form" 
    683         diff -b $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more 
    684         rm -i $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRTMP)/bibdemo1_dbk5_1.txt 
    685  
    686 $(DIRTMP)/bibdemo1_dbk5_1.txt : \ 
    687 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    688 $(DIRSRC)/superbib01_txt.xsl \ 
    689 $(DIRSRC)/biblioentry_xml.xsl 
    690         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    691         --output $@ \ 
    692         $(DIRSRC)/superbib01_txt.xsl \ 
    693         $< 
    694  
    695 $(DIRTMP)/bibdemo1_dbk5_1.xml : \ 
    696 $(DIRTMP)/bibdemo1_dbk5_1.txt \ 
    697 $(DIRSRC)/bibopa.sh 
    698         $(DIRSRC)/bibopa.sh -p demo1 -i $< -t raw -l fr 
    699  
    700 test_raw_demo1_2_tex : \ 
    701 $(DIRTMP)/bibdemo1_dbk5_2.dvi 
    702         @echo "test from xml to latex via bibtex form" 
    703  
    704 $(DIRTMP)/bibdemo1_dbk5_2.dvi : \ 
    705 $(DIRTMP)/bibdemo1_dbk5_2.tex \ 
    706 $(DIRTMP)/bibdemo1_dbk5_2.bib 
    707         cd $(DIRTMP)/ 
    708         latex bibdemo1_dbk5_2 
    709         bibtex bibdemo1_dbk5_2 
    710         latex bibdemo1_dbk5_2 
    711  
    712 $(DIRTMP)/bibdemo1_dbk5_2.tex : \ 
    713 $(DIRSRC)/data/superbib01.tex 
    714         @sed -e "s/bibliography{superbib01}/bibliography{bibdemo1_dbk5_2}/" \ 
    715         $< > $(DIRTMP)/bibdemo1_dbk5_2.tex 
    716          
    717 test_raw_demo1_2 : \ 
    718 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    719 $(DIRTMP)/bibdemo1_dbk5_2.xml \ 
    720 $(DIRTMP)/bibdemo1_dbk5_2.bib 
    721         @echo "test from xml to xml via bibtex form" 
    722         diff -b $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more 
    723         rm -i $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRTMP)/bibdemo1_dbk5_2.bib 
    724  
    725 $(DIRTMP)/bibdemo1_dbk5_2.bib : \ 
    726 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 
    727 $(DIRSRC)/superbib02_txt.xsl \ 
    728 $(DIRSRC)/biblioentry_xml.xsl 
    729         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    730         --output $@ \ 
    731         $(DIRSRC)/superbib02_txt.xsl \ 
    732         $< 
    733  
    734 $(DIRTMP)/bibdemo1_dbk5_2.xml : \ 
    735 $(DIRTMP)/bibdemo1_dbk5_2.bib \ 
    736 $(DIRSRC)/bibopa.sh \ 
    737 $(DIRSRC)/bibtexml2dbk.xsl \ 
    738 $(DIRSRC)/external/bibtex2xml.py 
    739         $(DIRSRC)/bibopa.sh -p demo1 -i $< -t bibtex -o fs -l fr 
    740  
    741 test_raw_nemo1 : \ 
    742 $(DIRSRC)/data/bibnemo1.xml \ 
    743 $(DIRTMP)/bibnemo1.xml \ 
    744 $(DIRTMP)/bibnemo1.txt 
    745         diff -b $(DIRTMP)/bibnemo1.xml $(DIRSRC)/data/bibnemo1.xml | more 
    746         rm -i $(DIRTMP)/bibnemo1.xml $(DIRTMP)/bibnemo1.txt 
    747  
    748 $(DIRTMP)/bibnemo1.txt : \ 
    749 $(DIRSRC)/data/bibnemo1.xml \ 
    750 $(DIRSRC)/superbib01_txt.xsl \ 
    751 $(DIRSRC)/biblioentry_xml.xsl 
    752         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    753         --output $@ \ 
    754         $(DIRSRC)/superbib01_txt.xsl \ 
    755         $< 
    756  
    757 $(DIRTMP)/bibnemo1.xml : \ 
    758 $(DIRTMP)/bibnemo1.txt \ 
    759 $(DIRSRC)/bibopa.sh 
    760         $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en 
    761  
    762 test_raw_nemoall : \ 
    763 $(DIRSRC)/data/biball.xml \ 
    764 $(DIRTMP)/bibnemoall.xml \ 
    765 $(DIRTMP)/bibnemoall.txt 
    766         diff -b $(DIRTMP)/bibnemoall.xml $(DIRSRC)/data/biball.xml | more 
    767         rm -i $(DIRTMP)/bibnemoall.xml $(DIRTMP)/bibnemoall.txt 
    768  
    769 $(DIRTMP)/bibnemoall.txt : \ 
    770 $(DIRSRC)/data/biball.xml \ 
    771 $(DIRSRC)/superbib01_txt.xsl \ 
    772 $(DIRSRC)/biblioentry_xml.xsl 
    773         xsltproc --param makedate "'$(MAKEDATE)'" \ 
    774         --output $@ \ 
    775         $(DIRSRC)/superbib01_txt.xsl \ 
    776         $< 
    777  
    778 $(DIRTMP)/bibnemoall.xml : \ 
    779 $(DIRTMP)/bibnemoall.txt \ 
    780 $(DIRSRC)/bibopa.sh 
    781         $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en 
    782  
    783 test_demo1 : 
    784         ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml 
    785         ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml 
    786         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    787         make -f $(DIRSRC)/makefile clean 
    788         make -f $(DIRSRC)/makefile before 
    789         make -f $(DIRSRC)/makefile html 
    790  
    791 test_nemo1 : 
    792         ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml 
    793         ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml 
    794         ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd 
    795         make -f $(DIRSRC)/makefile clean 
    796         make -f $(DIRSRC)/makefile before 
    797         make -f $(DIRSRC)/makefile html 
     40#- 
     41ln -sf ${SUPERBIB}/data/bibnemo1.xml ${SUPERBIB}/biblio.xml 
     42ln -sf ${SUPERBIB}/data/usernemo.xml ${SUPERBIB}/user.xml 
     43ln -sf ${SUPERBIB}/data/usernemo.dtd ${SUPERBIB}/user.dtd 
     44ln -sf ${SUPERBIB}/data/mainnemo.xml ${SUPERBIB}/main.xml 
     45cd ${SUPERBIB} 
     46make clean 
     47make before 
     48make html 
Note: See TracChangeset for help on using the changeset viewer.