Changeset 75


Ignore:
Timestamp:
09/16/08 17:49:46 (16 years ago)
Author:
pinsard
Message:

comments in shell scripts in ReStructured? Text

Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/before.sh

    r74 r75  
    11#! /bin/sh 
    22# 
    3 # module : 
     3#+ 
     4# NAME 
     5# ==== 
     6# 
     7# before.sh - preparation of results directory 
     8# 
     9# 
     10# SYNOPSYS 
     11# ======== 
     12# 
     13# :: 
     14# 
     15#  $ before.sh -p product -s dirsrc -w dirwww -l lang -mono|-multi -m nmany 
     16# 
     17# DESCRIPTION 
     18# =========== 
     19# 
    420# preparation of temporary (before deployement) of superbib results directory 
    5 # - tree; 
    6 # - copy of constant images copie des images; 
    7 # - copy of CSS style sheet; 
    8 # - etc. 
    9 # 
    10 # update : 
     21#  - tree; 
     22#  - copy of constant images copie des images; 
     23#  - copy of CSS style sheet; 
     24#  - etc. 
     25# 
     26# EXAMPLES 
     27# ======== 
     28# 
     29# 
     30# FILES 
     31# ===== 
     32# 
     33# original location 
     34# ~~~~~~~~~~~~~~~~~ 
     35# 
     36# /usr/home/fplod/src/superbib_ws/before.sh sur aedon.locean-ipsl.upmc.fr 
     37# 
     38# EVOLUTIONS 
     39# ========== 
     40# 
    1141# $Id$ 
    12 # fplod 2008-06-16T09:48:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    13 # add copy of documents 
    14 # fplod 2007-10-17T12:22:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
    15 # parametrisation of number of "many" presentation 
    16 # fplod 2007-09-28T08:43:10Z aedon.locean-ipsl.upmc.fr (Darwin) 
    17 # parametrisation and translation 
    18 # fplod 2007-03-30T09:55:49Z aedon.locean-ipsl.upmc.fr (Darwin) 
    19 # création 
    20 # 
    21 # 
    22 set -o posix 
     42# 
     43# - fplod 2008-09-16T15:19:59Z aedon.locean-ipsl.upmc.fr (Darwin) 
     44# 
     45#  * comments in ReStructured Text 
     46# 
     47# - fplod 2008-06-16T09:48:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
     48# 
     49#   * add copy of documents 
     50# 
     51# - fplod 2007-10-17T12:22:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
     52# 
     53#   * parametrisation of number of "many" presentation 
     54# 
     55# - fplod 2007-09-28T08:43:10Z aedon.locean-ipsl.upmc.fr (Darwin) 
     56# 
     57#   * parametrisation and translation 
     58# 
     59# - fplod 2007-03-30T09:55:49Z aedon.locean-ipsl.upmc.fr (Darwin) 
     60# 
     61#   * création 
     62# 
     63#- 
     64# 
     65system=$(uname) 
     66case "${system}" in 
     67 AIX|IRIX64) 
     68  echo " www : no specific posix checking" 
     69 ;; 
     70 *) 
     71  set -o posix 
     72 ;; 
     73esac 
     74# 
    2375command=$(basename ${0} .sh) 
    2476log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
     
    144196# 
    145197# copy of documents 
    146 if [ -d ${dirsrc}/documents/ ]  
     198if [ -d ${dirsrc}/documents/ ] 
    147199then 
    148200 cp ${dirsrc}/documents/* ${dirwww}/documents/ 
  • trunk/bibopa.sh

    r74 r75  
    11#!/bin/bash 
     2#+ 
     3# NAME 
     4# ==== 
     5# 
     6# bibopa.sh - transform a bibliography file in DocBook 5 format 
     7# 
     8# SYNOPSYS 
     9# ======== 
     10# 
     11# :: 
     12# 
     13#  $ bibopa.sh -i filein -t type -o order -p project -l lang 
     14# 
     15# 
     16# DESCRIPTION 
     17# =========== 
     18# 
     19# :: 
    220# 
    321#    Behera, S. K., J. Luo, S. Masson, S. Rao, S. Gualdi, P. Delecluse, A. 
     
    624#    press. 
    725# 
    8 #    donnerait 
     26# 
     27# donnerait 
     28# 
     29# :: 
    930# 
    1031#    <biblioentry xml:id="behara2004"> 
     
    3051#    </biblioentry> 
    3152# 
     53# 
     54# :: 
     55# 
    3256#   @book{MetReiCoh2004 , 
    3357#      author    = {Michael Metcalf and 
     
    4064#      pages = {434} 
    4165#   } 
     66# 
     67# 
    4268# donnerait 
     69# 
     70# :: 
     71# 
    4372#    <biblioentry xml:id="MetReiCoh2004"> 
    4473#    <authorgroup> 
     
    5483#    <edition>Third</edition> 
    5584# 
    56 # example : 
    57 # $ ./bibopa.sh -p birefnemo -i data/biball.txt -t raw 
    58 # $ ./bibopa.sh -p bibrefnemo -i data/mail2007-05-10T09:01:56Z -t mailbody 
    59 # $ ./bibopa.sh -p polyfortran -i data/petitpolyfp.bib -t bibtex -l fr 
    60 # $ ./bibopa.sh -p demo1 -i data/bibdemo1.txt -t raw -l fr 
     85# 
     86# EXAMPLES 
     87# ======== 
     88# 
     89# To transform the NEMO bibilography file in raw format: 
     90# 
     91# :: 
     92# 
     93#  $ ./bibopa.sh -p birefnemo -i data/biball.txt -t raw 
     94# 
     95# 
     96# To transform a bibilography file in mailbody format: 
     97# 
     98# :: 
     99# 
     100#  $ ./bibopa.sh -p bibrefnemo -i data/mail2007-05-10T09:01:56Z -t mailbody 
     101# 
     102# 
     103# To transform a bibilography file in bibtex format in french: 
     104# 
     105# :: 
     106# 
     107#  $ ./bibopa.sh -p polyfortran -i data/petitpolyfp.bib -t bibtex -l fr 
     108# 
     109# 
     110# To transform the SUPERBIB demo bibilography file in raw format: 
     111# 
     112# :: 
     113# 
     114#  $ ./bibopa.sh -p demo1 -i data/bibdemo1.txt -t raw -l fr 
     115# 
    61116# 
    62117# see also mailtouser.sh 
    63118# 
    64 # original location : 
     119# FILES 
     120# ===== 
     121# 
     122# original location 
     123# ~~~~~~~~~~~~~~~~~ 
     124# 
    65125# /usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr 
    66126# 
    67 # update 
     127# EVOLUTIONS 
     128# ========== 
     129# 
    68130# ++ gestion des comments 
     131# 
    69132# ++ gestion des id existants (cf à la fin) 
     133# 
    70134# ++ option debug 
     135# 
     136# 
    71137# $Id$ 
    72 # fplod 2008-05-16T10:33:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    73 # add parameter -o for firstname/surname order in bibtex file 
    74 # fplod 2008-05-15T15:15:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
    75 # new way of processing bibtex file : external/bibtex2xml.py 
    76 # fplod 2008-04-30T07:11:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
    77 # chgt for dbk5 out 
    78 # xmlto 0.0.18 does'nt like this docbook release. remove 
    79 # usage of xml (xmlstarlet) for validation 
    80 # bug fix 
    81 # add journal names from demo1 
    82 # fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin) 
    83 # add -p option (to overide bibrefnemo in file name and id) 
    84 # add -l option by default en 
    85 # fplod 2008-03-11T11:25:27Z aedon.locean-ipsl.upmc.fr (Darwin) 
    86 # add bibtex entry (not finished)++ 
    87 # fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    88 # <bibliomisc role="id"> replace by <biblioid class="doi"> 
    89 # smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    90 # Add journals 
    91 # fplod 2007-05-10T09:17:09Z aedon.locean-ipsl.upmc.fr (Darwin) 
    92 # dernières touches 
    93 # fplod 2007-04-25T10:59:49Z cerbere.locean-ipsl.upmc.fr (Linux) 
    94 # add a filein parameter and an option for mailbody 
    95 # comments  (line begininig with #) are now possible 
    96 # Sebastien Masson avril 2007 creation 
    97 # 
     138# 
     139# - fplod 2008-09-16T15:19:59Z aedon.locean-ipsl.upmc.fr (Darwin) 
     140# 
     141#  * comments in ReStructured Text 
     142# 
     143# - fplod 2008-05-16T10:33:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
     144# 
     145#  * add parameter -o for firstname/surname order in bibtex file 
     146# 
     147# - fplod 2008-05-15T15:15:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
     148# 
     149#  * new way of processing bibtex file : external/bibtex2xml.py 
     150# 
     151# - fplod 2008-04-30T07:11:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
     152# 
     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 
     161# 
     162# - fplod 2008-03-11T11:25:27Z aedon.locean-ipsl.upmc.fr (Darwin) 
     163# 
     164#  * add bibtex entry (not finished)++ 
     165# 
     166# - fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
     167# 
     168#  * <bibliomisc role="id"> replace by <biblioid class="doi"> 
     169# 
     170# - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
     171# 
     172#  * Add journals 
     173# 
     174# - fplod 2007-05-10T09:17:09Z aedon.locean-ipsl.upmc.fr (Darwin) 
     175# 
     176#  * dernières touches 
     177# 
     178# - fplod 2007-04-25T10:59:49Z cerbere.locean-ipsl.upmc.fr (Linux) 
     179# 
     180#  * add a filein parameter and an option for mailbody 
     181#  * comments  (line begininig with #) are now possible 
     182# 
     183# - Sebastien Masson avril 2007 
     184# 
     185#  * creation 
     186# 
     187#- 
    98188 
    99189rmbl () { 
     
    111201} 
    112202# 
    113 set -o posix 
     203system=$(uname) 
     204case "${system}" in 
     205 AIX|IRIX64) 
     206  echo " www : no specific posix checking" 
     207 ;; 
     208 *) 
     209  set -o posix 
     210 ;; 
     211esac 
    114212command=$(basename ${0}) 
    115213log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
     
    433531mv ${fileraw_strict}2 ${fileraw_strict} 
    434532case ${type} in 
    435 bibtex)  
     533bibtex) 
    436534 fileou_bibtexml=/tmp/$(basename ${fileraw})_bibtexml 
    437535 python ./external/bibtex2xml.py ${fileraw_strict} > ${fileou_bibtexml} 
     
    444542 --param order "'${order}'" \ 
    445543 bibtexml2dbk.xsl ${fileou_bibtexml} 
    446  rm ${fileou_bibtexml}  
     544 rm ${fileou_bibtexml} 
    447545;; 
    448546*) 
  • trunk/install.sh

    r74 r75  
    11#!/bin/sh 
    22# 
    3 # module : 
     3#+ 
     4# NAME 
     5# ==== 
     6# 
     7# install.sh - publication of HTML files and associated files 
     8# 
     9# 
     10# SYNOPSYS 
     11# ======== 
     12# 
     13# :: 
     14# 
     15#  $ install.sh -w dirwww -p dirpublish -u urlpublish -l login 
     16# 
     17# DESCRIPTION 
     18# =========== 
     19# 
     20# 
    421# publication (rsync) of dirwww content on dirpublish given in argument 
    522# 
     
    724# is launched. 
    825# 
    9 # update : 
     26# EXAMPLES 
     27# ======== 
     28# 
     29# FILES 
     30# ===== 
     31# 
     32# original location 
     33# ~~~~~~~~~~~~~~~~~ 
     34# 
     35# /usr/home/fplod/src/superbib_ws/install.sh sur aedon.locean-ipsl.upmc.fr 
     36# 
     37# EVOLUTIONS 
     38# ========== 
     39# 
    1040# $Id$ 
    11 # fplod 2008-06-17T09:10:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 # add -l parameter only used in specific case at LOCEAN when user parameter of 
    13 # persoweb must be different tthan login (ex: acmo vs fplod) 
    14 # replace http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" 
    15 # by 
    16 # http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user} 
    17 # fplod 2008-03-28T10:26:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
    18 # new personnal webpages policy at LOCEAN so new command and new parameter (-u) 
    19 # fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 # parametrisation and translation 
    21 # smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    22 # can give the answer with input parameters 
    23 # fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2441# 
    25 set -o posix 
     42# - fplod 2008-09-16T15:24:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
     43# 
     44#  * comments in ReStructured Text 
     45# 
     46# - fplod 2008-06-17T09:10:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
     47# 
     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} 
     52# 
     53# - fplod 2008-03-28T10:26:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
     54# 
     55#   * new personnal webpages policy at LOCEAN so new command and new parameter (-u) 
     56# 
     57# - fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
     58# 
     59#  * parametrisation and translation 
     60# 
     61# - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
     62# 
     63#  * can give the answer with input parameters 
     64# 
     65# - fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 
     66# 
     67#- 
     68system=$(uname) 
     69case "${system}" in 
     70 AIX|IRIX64) 
     71  echo " www : no specific posix checking" 
     72 ;; 
     73 *) 
     74  set -o posix 
     75 ;; 
     76esac 
     77# 
    2678command=$(basename ${0} .sh) 
    2779log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
  • trunk/linkchecker.sh

    r55 r75  
    11#! /bin/sh 
     2#+ 
     3# NAME 
     4# ==== 
    25# 
    3 # module : 
     6# linkchecker.sh -  check links of a given directory or url 
     7# 
     8# SYNOPSYS 
     9# ======== 
     10# 
     11# :: 
     12# 
     13#  $ linkchecker.sh -d dircheck -u url 
     14# 
     15# 
     16# DESCRIPTION 
     17# =========== 
     18# 
    419# check links of a given directory or url 
    520# cf. install.sh 
    621# 
    7 # original location : 
     22# 
     23# EXAMPLES 
     24# ======== 
     25# 
     26# 
     27# FILES 
     28# ===== 
     29# 
     30# original location 
     31# ~~~~~~~~~~~~~~~~~ 
     32# 
    833# /usr/home/fplod/src/superbib_ws/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 
    934# 
    10 # update : 
     35# EVOLUTIONS 
     36# ========== 
     37# 
    1138# ++ linkchecker ne voit pas les erreurs !! 
     39# 
    1240# ++ dirpublish forme fplod@cerbere.locean-ipsl.upmc.fr:./WWW/ par example 
    1341# donc pas http 
    14 # + ajouter la possibilite de faire une carte du site avec 
    15 # graphiz 
    16 # exemple syntaxe = 
    17 # $ linkchecker -odot -v http://www.lodyc.jussieu.fr/NEMO/general/biblio_new/   | dot -Tps > sitemap.ps 
     42# 
     43# + ajouter la possibilite de faire une carte du site avec raphiz 
     44# 
     45# exemple syntaxe 
     46# 
     47# :: 
     48# 
     49#  $ linkchecker -odot -v http://www.lodyc.jussieu.fr/NEMO/general/biblio_new/   | dot -Tps > sitemap.ps 
     50# 
    1851# 
    1952# remove "set -u" because I don't know how to test if there is at least 
    2053# one directory AND one url to be checked without this option 
     54# 
    2155# !! ++ must be restore ASAP 
     56# 
    2257# $Id$ 
    23 # fplod 2007-10-12T07:32:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
    24 # add -u pour url 
    25 # add multiple -d and suppression of interactivity 
    26 # replace -w by -d (more generic) 
    27 # use rather checklink than linkchecker because the first one exist either 
    28 # on Mac and Unix, and because the second one exists only on Mac and 
    29 # does'nt seem to detect every problem 
    30 # fplod 2007-10-11T15:31:25Z aedon.locean-ipsl.upmc.fr (Darwin) 
    31 # parametrization 
    32 # merge with checklink.sh ++ choisir entre les deux 
    33 # fplod 2007-06-19T09:26:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
    34 # création 
    3558# 
    36 set -o posix 
     59# - fplod 2008-09-16T15:28:34Z aedon.locean-ipsl.upmc.fr (Darwin) 
     60# 
     61#   * comment in ReStructured Text 
     62# 
     63# - fplod 2007-10-12T07:32:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
     64# 
     65#   * add -u pour url 
     66#   * add multiple -d and suppression of interactivity 
     67#   * replace -w by -d (more generic) 
     68#   * use rather checklink than linkchecker because the first one exist either 
     69#     on Mac and Unix, and because the second one exists only on Mac and 
     70#     does'nt seem to detect every problem 
     71# 
     72# - fplod 2007-10-11T15:31:25Z aedon.locean-ipsl.upmc.fr (Darwin) 
     73# 
     74#   * parametrization 
     75#   * merge with checklink.sh ++ choisir entre les deux 
     76# 
     77# - fplod 2007-06-19T09:26:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
     78# 
     79#   * création 
     80#- 
     81system=$(uname) 
     82case "${system}" in 
     83 AIX|IRIX64) 
     84  echo " www : no specific posix checking" 
     85 ;; 
     86 *) 
     87  set -o posix 
     88 ;; 
     89esac 
    3790command=$(basename ${0} .sh) 
    3891log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
  • trunk/mailtouser.sh

    r64 r75  
    11#! /bin/sh 
    2 # 
    3 # module : 
    4 # convert email text in xml form folloowing user.dtd 
     2#+ 
     3# NAME 
     4# ==== 
     5# 
     6# mailtouser.sh - convert email text in xml form folloowing user.dtd 
     7# 
     8# 
     9# SYNOPSYS 
     10# ======== 
     11# 
     12# :: 
     13# 
     14#  $ mailtouser.sh -m mailbodyfile -x xmloutput 
     15# 
     16# 
     17# 
     18# DESCRIPTION 
     19# =========== 
     20# 
     21# convert email text in xml form following user.dtd 
    522# 
    623# see also bibopa.sh 
    724# 
    8 # example : 
    9 # $ ./mailtouser.sh -m data/mail2007-05-10T09:01:56Z -x ginette.xml 
    10 # 
    11 # see also bibopa.sh 
    12 # 
    13 # update : 
     25# EXAMPLES 
     26# ======== 
     27# 
     28# :: 
     29# 
     30#  $ ./mailtouser.sh -m data/mail2007-05-10T09:01:56Z -x ginette.xml 
     31# 
     32# 
     33# FILES 
     34# ===== 
     35# 
     36# original location 
     37# ~~~~~~~~~~~~~~~~~ 
     38# 
     39# /usr/home/fplod/src/superbib_ws/mailtouser.sh sur aedon.locean-ipsl.upmc.fr 
     40# 
     41# EVOLUTIONS 
     42# ========== 
     43# 
    1444# ++ gestion des comments 
     45# 
    1546# ++ gestion de la signature 
     47# 
    1648# $Id$ 
    17 # fplod 2007-06-06T09:27:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
    18 # correction for Off-Line and PC Cluster 
    19 # fplod 2007-05-18T08:31:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 # add off-line and agrif components 
    21 # fplod 2007-05-09T15:03:15Z aedon.locean-ipsl.upmc.fr (Darwin) 
    22 # reprise + ajout middlename + ajout components_date 
    23 # fplod 2007-04-25T09:15:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    24 # creation 
    25 # 
    26 set -o posix 
     49# 
     50# - fplod 2008-09-16T15:42:41Z aedon.locean-ipsl.upmc.fr (Darwin) 
     51# 
     52#  * comments in ReStructured Text 
     53# 
     54# - fplod 2007-06-06T09:27:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
     55# 
     56#  * correction for Off-Line and PC Cluster 
     57# 
     58# - fplod 2007-05-18T08:31:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
     59# 
     60#  * add off-line and agrif components 
     61# 
     62# - fplod 2007-05-09T15:03:15Z aedon.locean-ipsl.upmc.fr (Darwin) 
     63# 
     64#  * reprise + ajout middlename + ajout components_date 
     65# 
     66# - fplod 2007-04-25T09:15:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     67# 
     68#  * creation 
     69# 
     70#- 
     71system=$(uname) 
     72case "${system}" in 
     73 AIX|IRIX64) 
     74  echo " www : no specific posix checking" 
     75 ;; 
     76 *) 
     77  set -o posix 
     78 ;; 
     79esac 
    2780command=$(basename ${0} .sh) 
    2881log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
  • trunk/twindoi.sh

    r63 r75  
    11#! /bin/sh 
    2 # module : 
     2#+ 
     3# NAME 
     4# ==== 
     5# 
     6# twindoi.sh - detection of duplicate DOI 
     7# 
     8# SYNOPSYS 
     9# ======== 
     10# 
     11# :: 
     12# 
     13#  $ twindoi.sh -i filein -t type 
     14# 
     15# 
     16# DESCRIPTION 
     17# =========== 
     18# 
     19# 
    320# detection of duplicate DOI 
    421# 
    5 # original location : 
     22# EXAMPLES 
     23# ======== 
     24# 
     25# :: 
     26# 
     27#  $ ./twindoi.sh -i data/biball.txt -t raw 
     28# 
     29# 
     30# :: 
     31# 
     32#  $ ./twindoi.sh -i data/biball.xml -t xml 
     33# 
     34# FILES 
     35# ===== 
     36# 
     37# original location 
     38# ~~~~~~~~~~~~~~~~~ 
     39# 
    640# /usr/home/fplod/src/superbib_ws/twindoi.sh sur aedon.locean-ipsl.upmc.fr 
    741# 
    8 # example : 
    9 # $ ./twindoi.sh -i data/biball.txt -t raw 
    10 # $ ./twindoi.sh -i data/biball.xml -t xml 
    1142# 
    12 # update : 
     43# EVOLUTIONS 
     44# ========== 
     45# 
    1346# ++ option debug 
     47# 
    1448# ++ the following command wich is not convinient 
    15 # (xml vs txt) did not give any alert and check inside 
    16 # xml comments 
    17 # $ ./twindoi.sh -i data/biball.xml -t raw 
    18 # $Id$ 
    19 # fplod 2008-05-05T14:26:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 # usage of xml(starlet) for doi extraction in xml file 
    21 # fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    22 # consolidation and homogeneisation 
    23 # smasson 2007-06-20T16:11:47Z 
    24 # creation 
     49# (xml vs txt) did not give any alert and check inside xml comments 
     50# :: 
     51# 
     52#  $ ./twindoi.sh -i data/biball.xml -t raw 
    2553# 
    2654# 
    27 set -o posix 
     55# $Id$ 
     56# 
     57# - fplod 2008-05-05T14:26:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
     58# 
     59#  * usage of xml(starlet) for doi extraction in xml file 
     60# 
     61# - fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
     62# 
     63#  * consolidation and homogeneisation 
     64# 
     65# - smasson 2007-06-20T16:11:47Z 
     66# 
     67#  * creation 
     68#- 
     69# 
     70system=$(uname) 
     71case "${system}" in 
     72 AIX|IRIX64) 
     73  echo " www : no specific posix checking" 
     74 ;; 
     75 *) 
     76  set -o posix 
     77 ;; 
     78esac 
    2879command=$(basename ${0}) 
    2980log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
Note: See TracChangeset for help on using the changeset viewer.