Changeset 431


Ignore:
Timestamp:
04/20/10 15:14:28 (14 years ago)
Author:
pinsard
Message:

add design target for documents productions

Location:
trunk/SRC/Documentation/xmldoc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/docompileall.sh

    r430 r431  
    8686# 
    8787# - fplod 20091116T142010Z aedon.locean-ipsl.upmc.fr (Darwin) 
    88 #    
     88# 
    8989#   * remove dup if only SAXO 
    9090# 
     
    139139         shift 
    140140      ;; 
    141       -idl_dir) 
    142          idl_dir=${2} 
    143          shift 
    144       ;; 
    145       -h) 
    146          echo "${usage}" 
    147          exit 0 
    148       ;; 
    149       *) # other choice 
    150         echo "${usage}" 
    151         exit 1 
    152       ;; 
    153    esac 
    154    shift # next flag 
     141 -idl_dir) 
     142 idl_dir=${2} 
     143 shift 
     144 ;; 
     145 -h) 
     146 echo "${usage}" 
     147 exit 0 
     148 ;; 
     149 *) # other choice 
     150 echo "${usage}" 
     151 exit 1 
     152 ;; 
     153 esac 
     154 shift # next flag 
    155155done 
    156156# 
     
    160160if [ ! -d ${indir} ] 
    161161then 
    162    echo "eee : ${indir} not found" 
    163    exit 1 
     162 echo "eee : ${indir} not found" 
     163 exit 1 
    164164fi 
    165165# 
     
    178178if [ "${indir}" != "${SAXO_DIR}/SRC/" ] 
    179179then 
    180    cat <<EOF >> /tmp/docompileall${$}.pro 
     180 cat <<EOF >> /tmp/docompileall${$}.pro 
    181181!path = expand_path('+' + '${indir}') + ':' + !path 
    182182EOF 
     
    208208if [ "${list_files}" = "" ] 
    209209then 
    210    echo "eee : no . pro files found under ${indir}" 
    211    exit 1 
    212 fi 
    213 #  
     210 echo "eee : no . pro files found under ${indir}" 
     211 exit 1 
     212fi 
     213# 
    214214# loop on each file in the list to select PRO and FUNCTION modules 
    215215# ie exclude common files 
    216216for i in ${list_files} 
    217217do 
    218    # does it contains pro or function ? 
    219    egrep -iq '^ *       *(pro|function)' ${i} 
    220    if [ ${?} -eq 0 ] 
    221    then 
    222       echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 
    223       echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 
    224    fi 
     218 # does it contains pro or function ? 
     219 egrep -iq '^ * *(pro|function)' ${i} 
     220 if [ ${?} -eq 0 ] 
     221 then 
     222  echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 
     223  echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 
     224 fi 
    225225done 
    226226echo "exit" >> /tmp/docompileall${$}.pro 
    227227# 
    228 #more /tmp/docompileall${$}.pro  
     228#more /tmp/docompileall${$}.pro 
    229229export IDL_STARTUP=/tmp/docompileall${$}.pro 
    230230${application} &> /tmp/docompileallerr_${$} 
     
    233233if [ ${?} -ne 0 ] 
    234234then 
    235    echo "all files are OK" 
    236    # clean 
    237    rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 
     235 echo "all files are OK" 
     236 # clean 
     237 rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 
    238238else 
    239    grep "Compilation error(s)" /tmp/docompileallerr_${$} 
    240    echo "eee : see /tmp/docompileallerr_${$}" 
    241    more /tmp/docompileallerr_${$} 
    242    exit 1 
    243 fi 
     239 grep "Compilation error(s)" /tmp/docompileallerr_${$} 
     240 echo "eee : see /tmp/docompileallerr_${$}" 
     241 more /tmp/docompileallerr_${$} 
     242 exit 1 
     243fi 
     244 
    244245# end 
    245246exit 0 
  • trunk/SRC/Documentation/xmldoc/doidldoc.sh

    r430 r431  
    2626# -r refhtml 
    2727# 
    28 # Two passes : first *classic* idldoc then some home made transformation  
     28# Two passes : first *classic* idldoc then some home made transformation 
    2929# to avoid for example version of idldoc on each HTML files. 
    3030# 
     
    126126# 
    127127# - fplod 20091110T151839Z aedon.locean-ipsl.upmc.fr (Darwin) 
    128 #    
     128# 
    129129#   * add CAUTIONS about SAXO_DIR environment variable 
    130130#     and usage in EXAMPLES 
     
    274274         exit 0 
    275275      ;; 
    276       *) # other choice 
     276      *) 
     277         # other choice 
    277278         echo "${usage}" 
    278279         exit 1 
    279280      ;; 
    280281   esac 
    281    shift # next flag 
     282   # next flag 
     283   shift 
    282284done 
    283285# 
     
    368370      # build the .pro file name 
    369371      bfile=$(basename ${file_html} .html) 
    370       # retrieve the path of html file relative to output.  
     372      # retrieve the path of html file relative to output. 
    371373      # This path will be used in "Source" link. 
    372374      nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
     
    425427   ielement=1 
    426428   while [ ${ielement} -le ${nelement} ] 
    427    do  
     429   do 
    428430      # replace <element>ginette</element> by a sequence like 
    429431      # <a href="./ginette.html">ginette</a> 
    430432      ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} \ 
    431433         -r ${refhtml[${ielement}]} \ 
    432          -e ${element[${ielement}]}  
     434         -e ${element[${ielement}]} 
    433435      status=${?} 
    434436      if [ ${status} -ne 0 ] 
     
    439441      ielement=$(( ${ielement} + 1)) 
    440442   done 
    441 fi # end of transform = 1 
     443   # end of transform = 1 
     444fi 
    442445# 
    443446# 
  • trunk/SRC/Documentation/xmldoc/firststeps_pre.sh

    r430 r431  
    118118done 
    119119## 
    120 cd .. # ie <working space of saxo>/SRC/Documentation/xmldoc 
     120# cd to <working space of saxo>/SRC/Documentation/xmldoc 
     121cd ../ 
    121122# 
    122123rm firststeps_sed.xml 2> /dev/null 
  • trunk/SRC/Documentation/xmldoc/forxxxdoc.sh

    r430 r431  
    1818# add a parameter = the number of figpng/xxx_n.png 
    1919# fplod 2006-07-19T12:40:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 # first release  
     20# first release 
    2121# 
    2222# 
     
    4646callout_ysize=12 # ++ should be obtain by parsing identify result 
    4747# 
    48 case ${capture} in  
     48case ${capture} in 
    4949   figpng/xxx_0101_org.png) 
    5050      capture_xsize=520 #++ should be obtain by parsing identify result 
     
    5252      # 
    5353      # description of frames (title, xmin, ymin, xmax,ymax) 
    54       # nb : title and label are not yet used but they may be added in a kind of  
     54      # nb : title and label are not yet used but they may be added in a kind of 
    5555      # comments 
    5656      # later in xml as id or label 
     
    7878      # 
    7979      # description of frames (title, xmin, ymin, xmax,ymax) 
    80       # nb : title and label are not yet used but they may be added in a kind of  
     80      # nb : title and label are not yet used but they may be added in a kind of 
    8181      # comments 
    8282      # later in xml as id or label 
     
    126126      # 
    127127      # description of frames (title, xmin, ymin, xmax,ymax) 
    128       # nb : title and label are not yet used but they may be added in a kind of  
     128      # nb : title and label are not yet used but they may be added in a kind of 
    129129      # comments 
    130130      # later in xml as id or label 
     
    147147esac 
    148148# 
    149 # calculation of % of the rectangle of each zone for Calspair  
     149# calculation of % of the rectangle of each zone for Calspair 
    150150iz=1 
    151151while [ ${iz} -le ${zone_nb} ] 
     
    206206        iz=$(( ${iz} + 1 )) 
    207207    done 
    208      
    209208fi 
    210 # +++ verrue mal codee...  
     209# +++ verrue mal codee... 
    211210# 
    212211# 
     
    223222if [ ${convert_status} -ne 0 ] 
    224223then 
    225    echo " eee : convert doesn't work properly"  >> ${log}  
     224   echo " eee : convert doesn't work properly"  >> ${log} 
    226225   echo " eee : return status = ${return_convert}"  >> ${log} 
    227226   exit 2 
  • trunk/SRC/Documentation/xmldoc/getsaxo.html

    r422 r431  
    125125       
    126126   
    127       <div class="sect3" lang="en" xml:lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_src_tar" id="saxo_src_tar"></a>2.3.1.  Get <span class="application">SAXO</span> source files (5.9M Mb) </h4></div></div></div> 
     127      <div class="sect3" lang="en" xml:lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_src_tar" id="saxo_src_tar"></a>2.3.1.  Get <span class="application">SAXO</span> source files ( Mb) </h4></div></div></div> 
    128128 
    129129<p> 
     
    136136         </p> 
    137137         <p> 
    138   
 and download it the latest version of the sources tar file: <a class="link" href="http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20090723r402.tar.gz" target="_top">SAXO_SRC_20090723r402.tar.gz</a> (5.9M Mb). 
     138  
 and download it the latest version of the sources tar file: <a class="link" href="http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_.tar.gz" target="_top">SAXO_SRC_.tar.gz</a> ( Mb). 
    139139</p> 
    140140<p> 
    141141This tar.gz file could also be downloaded with <span class="command"><strong>wget</strong></span> or <span class="command"><strong>curl</strong></span> 
    142142</p><div class="variablelist"><dl><dt><span class="term"><span class="command"><strong>wget</strong></span></span></dt><dd><pre class="screen"> 
    143   <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>wget</strong></span> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20090723r402.tar.gz</code></em></code></strong> 
     143  <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>wget</strong></span> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_.tar.gz</code></em></code></strong> 
    144144  </pre> 
    145145           </dd><dt><span class="term"><span class="command"><strong>curl</strong></span></span></dt><dd><pre class="screen"> 
    146   <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>curl</strong></span> <code class="option">-O</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20090723r402.tar.gz</code></em></code></strong> 
     146  <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>curl</strong></span> <code class="option">-O</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_.tar.gz</code></em></code></strong> 
    147147  </pre> 
    148148           </dd></dl></div><p> 
     
    150150</p><pre class="screen"> 
    151151  <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>cd</strong></span> <em class="parameter"><code>${HOME}/SAXO_DIR</code></em></code></strong> 
    152   <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>tar</strong></span> <code class="option">xvfz</code> <em class="parameter"><code>SAXO_SRC_20090723r402.tar.gz</code></em></code></strong> 
    153   <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>rm</strong></span> <em class="parameter"><code>SAXO_SRC_20090723r402.tar.gz</code></em></code></strong> 
     152  <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>tar</strong></span> <code class="option">xvfz</code> <em class="parameter"><code>SAXO_SRC_.tar.gz</code></em></code></strong> 
     153  <code class="prompt">$</code> <strong class="userinput"><code><span class="command"><strong>rm</strong></span> <em class="parameter"><code>SAXO_SRC_.tar.gz</code></em></code></strong> 
    154154</pre><p> 
    155155</p> 
  • trunk/SRC/Documentation/xmldoc/makefile

    r416 r431  
    1616# $Id$ 
    1717# 
    18 # - fplod 20091118T112140Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1918#  
     19# - fplod 20100420T122154Z aedon.locean-ipsl.upmc.fr (Darwin) 
     20# 
     21#   * add design target 
     22# 
    2023# - fplod 20091118T111913Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2124# 
     
    5558./ 
    5659 
     60DIRDESIGN = \ 
     61./design/ 
     62 
    5763DIRWWW = \ 
    5864./ 
     
    6470all \ 
    6571clean \ 
     72design \ 
    6673dbkcheck \ 
    6774help \ 
     
    8491        -@rm -f $(DIRTMP)/getsaxo_sed.xml 
    8592        -@rm -f $(DIRTMP)/firststeps_sed.xml 
     93 
     94design : \ 
     95$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \ 
     96$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg 
    8697 
    8798dbkcheck : 
     
    484495        --output $@ \ 
    485496        $< 
     497$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg 
     498        @convert $< $@ 
     499 
     500$(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot 
     501        @dot -Tsvg -o $@ $< 
     502 
     503$(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \ 
     504./makefile 
     505        @makeppgraph --graphviz --output=$@ 
     506 
  • trunk/SRC/Documentation/xmldoc/pro2href.sh

    r430 r431  
    22# 
    33# DESCRIPTION 
    4 # ===========  
     4# =========== 
    55# 
    66# replace <element>ginette</element> by a sequence like with element given 
    77# in argument <a href="./ginette.html">ginette</a> 
    88# in all html files in dirhtml given in argument 
    9 # We have to deal with the path of ginette.html in refhtml also given in  
     9# We have to deal with the path of ginette.html in refhtml also given in 
    1010# argument. 
    1111# 
     
    1919# add -e (element) parameter to define element syntax like 
    2020# <pro></pro> or <proidl>...</proidl> 
    21 # add -i parameter : this directory is the one where we are looking for  
     21# add -i parameter : this directory is the one where we are looking for 
    2222# html files to be modified. so replace output by dirhtml 
    23 # add -r parameter :  this directory is the one where we are looking for  
     23# add -r parameter :  this directory is the one where we are looking for 
    2424# html files to be linked 
    25 # remove lowercase translation (because of idl help files which are in  
     25# remove lowercase translation (because of idl help files which are in 
    2626# uppercase) 
    2727# fplod 2007-08-20T11:25:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    4949do 
    5050   case ${1} in 
    51       -i) # dirhtml 
     51      -i) 
    5252         dirhtml=${2} 
    5353         shift 
    5454      ;; 
    55       -r) # refhtml 
     55      -r) 
    5656         refhtml=${2} 
    5757         shift 
    5858      ;; 
    59       -e) # element 
     59      -e) 
    6060         element=${2} 
    6161         shift 
     
    6565         exit 0 
    6666      ;; 
    67       *) # other choice 
     67      *) 
     68         # other choice 
    6869         echo "${usage}" 
    6970         exit 1 
    7071      ;; 
    7172   esac 
    72    shift # next flag 
     73   # next flag 
     74   shift 
    7375done 
    7476# 
     
    136138               path="./" 
    137139            fi 
    138             if [ "${lpath:0:1}" = "/" ] # absolute path 
     140            if [ "${lpath:0:1}" = "/" ] 
    139141            then 
     142               # absolute path 
    140143               path=${lpath} 
    141144            else 
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r430 r431  
    1717#   * do not anymore transfert tools and temporary files on download/ 
    1818# 
    19 #     already existing files have been removed manualy on  
     19#     already existing files have been removed manualy on 
    2020#     saxo@forge:~/download/xmldoc/ 
    21 #  
     21# 
    2222# - fplod 20100125T112917Z aedon.locean-ipsl.upmc.fr (Darwin) 
    23 #    
     23# 
    2424#   * complete doidldoc.sh calling sequence 
    2525# 
     
    187187rev=$( svn info | grep -i revision | awk '{print $NF}' ) 
    188188# memorize current directory 
    189 memopwd=$(pwd) # should be <working space>/SRC/Documentation/xmldoc 
     189# should be <working space>/SRC/Documentation/xmldoc 
     190memopwd=$(pwd) 
    190191# 
    191192#------------------------------------------------------------------ 
     
    252253   cd ${memopwd} 
    253254   make clean 
    254    make html  
     255   make html 
    255256fi 
    256257#------------------------------------------------------------------ 
     
    261262   # 
    262263   cd ${memopwd} 
    263    make clean  
     264   make clean 
    264265   make tracwiki 
    265266fi 
     
    290291   ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh \ 
    291292      -i ../.. -t "SAXO Documentation" \ 
    292       -o ../idldoc_html_output/  
     293      -o ../idldoc_html_output/ 
    293294      -idl_dir ${idl_dir} 
    294295      -e pro -r ../idldoc_html_output/ \ 
     
    607608[ -f job_data_idris_$$ ] && rm -f job_data_idris_$$ 
    608609# 
    609 exit  
     610exit 
Note: See TracChangeset for help on using the changeset viewer.