Changeset 116


Ignore:
Timestamp:
10/04/11 09:58:49 (13 years ago)
Author:
pinsard
Message:

Consolidation of shell scripts

Location:
trunk
Files:
10 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/before.sh

    r109 r116  
    9191unset system 
    9292# 
     93set -u 
     94# 
    9395command=$(basename ${0}) 
    9496log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    110112nmany=0 
    111113# 
    112 set +u 
    113 while [ ! -z "${1}" ] 
     114while [ ${#} -gt 0 ] 
    114115do 
    115116   case ${1} in 
     
    145146done 
    146147unset usage 
    147 # 
    148 set -u 
    149148# 
    150149# destruction of previous installation 
  • trunk/bibopa.sh

    r110 r116  
    322322unset system 
    323323# 
     324set -u 
     325# 
    324326command=$(basename ${0}) 
    325327log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    392394unset minargcount 
    393395# 
    394 set +u 
    395 while [ ! -z "${1}" ] 
     396while [ ${#} -gt 0 ] 
    396397do 
    397398   case ${1} in 
     
    436437done 
    437438unset usage 
    438 # 
    439 set -u 
    440439# 
    441440# check for filein 
  • trunk/checkmain.sh

    r115 r116  
    130130unset system 
    131131# 
     132set -u 
     133# 
    132134LANG=POSIX 
    133135# 
     
    149151fi 
    150152# 
    151 set +u 
    152 while [ ! -z "${1}" ] 
     153while [ ${#} -gt 0 ] 
    153154do 
    154155   case ${1} in 
     
    171172done 
    172173# 
    173 set -u 
    174174# check parameters 
    175175# 
  • trunk/form_rest.xsl

    r111 r116  
    66 
    77<!-- 
    8 module : 
    9 transformation des elements de formulaires docbook en html 
    108 
    11 update : 
     9DESCRIPTION 
     10=========== 
     11 
     12transformation des elements de formulaires docbook en rest 
     13 
     14TODO 
     15==== 
     16 
     17make it work 
     18 
     19EVOLUTIONS 
     20========== 
     21 
    1222$Id$ 
    13 fplod 2008-04-28T15:29:15Z aedon.locean-ipsl.upmc.fr (Darwin) 
    14 dbk5 in 
    15 fplod 2007-04-27T15:08:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
    16 ++ inclusion php d'après http://www.cygwin.com/ml/docbook-apps/2005-q1/msg00484.html 
    17 je laisse les xsl:processing-instruction qui devraient pouvoir marcher mais je ne sais pas pourquoi xsltproc 
    18 ne veut rien mettre dans le contenu de l'attribut value d'un input ... cf méchant sed dans makefile 
    19 fplod 2007-04-20T13:39:00Z aedon.locean-ipsl.upmc.fr (Darwin) 
    20 création 
     23$URL$ 
     24 
     25- fplod 20110629T125748Z cratos.locean-ipsl.upmc.fr (Linux) 
     26 
     27  * création 
     28 
    2129--> 
    2230 
  • trunk/insertphp.sh

    r109 r116  
    7676unset system 
    7777# 
     78set -u 
     79# 
    7880command=$(basename ${0}) 
    7981log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    104106unset minargcount 
    105107# 
    106 set +u 
    107 while [ ! -z "${1}" ] 
     108while [ ${#} -gt 0 ] 
    108109do 
    109110   case ${1} in 
     
    135136done 
    136137unset usage 
    137 # 
    138 set -u 
    139138# 
    140139# check for filein 
  • trunk/install.sh

    r112 r116  
    8888unset system 
    8989# 
     90set -u 
     91# 
    9092command=$(basename ${0}) 
    9193log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    109111login="none" 
    110112# 
    111 set +u 
    112 while [ ! -z "${1}" ] 
     113while [ ${#} -gt 0 ] 
    113114do 
    114115   case ${1} in 
     
    133134   shift 
    134135done 
    135 # 
    136 set -u 
    137136# 
    138137# ++ check directories 
  • trunk/linkchecker.sh

    r109 r116  
    114114idircheck=0 
    115115iurl=0 
    116 set +u 
    117 while [ ! -z "${1}" ] 
     116while [ ${#} -gt 0 ] 
    118117do 
    119118   case ${1} in 
     
    134133# 
    135134# +++ remove temporarily 
    136 # +++ set -u 
    137 # 
    138135# ++ check directories or URL 
    139136# 
  • trunk/mailtouser.sh

    r109 r116  
    8686unset system 
    8787# 
     88set -u 
     89# 
    8890command=$(basename ${0}) 
    8991log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    111113fi 
    112114# 
    113 set +u 
    114 while [ ! -z "${1}" ] 
     115while [ ${#} -gt 0 ] 
    115116do 
    116117   case ${1} in 
     
    135136unset usage 
    136137# 
    137 set -u 
    138 # 
    139138# check for mailbodyfile 
    140139if [ ! -f ${mailbodyfile} ] 
  • trunk/main_rest.xsl

    r111 r116  
    88<!--rst 
    99 
    10 .. _main_html.xsl: 
     10.. _main_rest.xsl: 
    1111 
    1212============= 
    13 main_html.xsl 
     13main_rest.xsl 
    1414============= 
    1515 
    16 transformation docbook en html avec formulaire 
     16transformation docbook en rest avec formulaire 
     17 
     18TODO 
     19==== 
     20 
     21make it work 
    1722 
    1823EVOLUTIONS 
     
    2025 
    2126$Id$ 
     27$URL$ 
    2228 
    23 - fplod 2008-09-17T10:23:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     29- fplod 20110629T133438Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2430 
    25   * add a link to project homepage at the bottom of the page 
    26  
    27 - fplod 2008-04-30T15:23:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    28  
    29   * language inherited from biblio.xml 
    30  
    31 - fplod 2008-04-28T11:02:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    32  
    33   * input dbk5 
    34  
    35 - fplod 2007-04-18T08:15:46Z aedon.locean-ipsl.upmc.fr (Darwin) 
    36  
    37   * création 
     31  * creation 
    3832 
    3933--> 
     34<xsl:import href="db_rest.xsl"/> 
    4035 
    41 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> 
    42  
    43 <xsl:output method="xml" 
    44 encoding="utf-8" 
    45 indent="yes" 
    46 omit-xml-declaration="yes" 
    47 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
    48 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> 
     36<xsl:output method="text"/> 
    4937 
    5038<xsl:include href="titlepage.superbib.xsl"/> 
    5139<xsl:include href="message_lang.xsl"/> 
    52 <xsl:include href="form_html.xsl"/> 
     40<xsl:include href="form_rest.xsl"/> 
    5341 
    54 <xsl:template match="*" mode="book.titlepage.mode"/> 
    55 <xsl:param name="generate.toc"> 
    56 article nop 
    57 </xsl:param> 
    58 <xsl:param name="css.decoration" select="0"/> 
    59 <xsl:param name="section.autolabel" select="0"/> 
    60  
    61 <!-- 
    62 Personalisation de bas de page 
    63 --> 
    6442<xsl:template name="user.footer.content"> 
    6543 <xsl:call-template name="para_lastupdate"> 
    6644  <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> 
    6745  <xsl:with-param name="date" select="$makedate"/> 
    68   <xsl:with-param name="mode" select="'html'"/> 
     46  <xsl:with-param name="mode" select="'rest'"/> 
    6947 </xsl:call-template> 
    7048 
  • trunk/message_lang.xsl

    r108 r116  
    1919$Id$ 
    2020 
     21$URL$ 
     22 
     23- fplod 20110705T154547Z aedon.locean-ipsl.upmc.fr (Darwin) 
     24 
     25  * add rest mode 
     26 
    2127- fplod 2008-09-17T12:07:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2228 
     
    135141<xsl:when test="($mode = 'flat')"> 
    136142<xsl:value-of select="$message_lastupdate"/> <xsl:value-of select="$date"/> 
     143</xsl:when> 
     144<xsl:when test="($mode = 'rest')"> 
     145<xsl:text>&#xA;</xsl:text> 
     146<xsl:value-of select="$message_lastupdate"/> <xsl:value-of select="$date"/> 
     147<xsl:text>&#xA;</xsl:text> 
    137148</xsl:when> 
    138149<xsl:otherwise> 
  • trunk/superbib01_rest.xsl

    r111 r116  
    77<!--rst 
    88 
    9 .. _superbib01_html.xsl: 
     9.. _superbib01_rest.xsl: 
    1010 
    1111=================== 
    12 superbib01_html.xsl 
     12superbib01_rest.xsl 
    1313=================== 
    1414 
    15 transformation docbook en un html 
     15transformation docbook en un rest 
    1616 
    17 EVOLUTION 
    18 ========= 
     17TODO 
     18==== 
     19 
     20make it work 
     21 
     22EVOLUTIONS 
     23========== 
    1924 
    2025$Id$ 
     26$URL$ 
    2127 
    22 - fplod 2008-09-17T10:23:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
    23  
    24   * add a link to project homepage at the bottom of the page 
    25  
    26 - fplod 2007-03-30T09:55:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
     28- fplod 20110629T131028Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2729 
    2830  * création 
     
    3032--> 
    3133 
    32 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> 
     34<xsl:import href="db_rest.xsl"/> 
    3335 
    34 <xsl:output method="xml" 
    35 encoding="utf-8" 
    36 indent="yes" 
    37 omit-xml-declaration="no" 
    38 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
    39 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> 
     36<xsl:output method="text"/> 
    4037 
    4138<xsl:include href="titlepage.superbib.xsl"/> 
     
    5653  <xsl:with-param name="language" select="/article/@xml:lang"/> 
    5754  <xsl:with-param name="date" select="$makedate"/> 
    58   <xsl:with-param name="mode" select="'html'"/> 
     55  <xsl:with-param name="mode" select="'rest'"/> 
    5956 </xsl:call-template> 
    6057 
  • trunk/superbib_profile.sh

    r109 r116  
    9595unset system 
    9696# 
     97set -u 
     98# 
    9799# as this script might be launch in .profile, command is forced. 
    98100command=superbib_profile.sh 
     
    100102usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir" 
    101103# 
    102 set +u 
    103 while [ ! -z "${1}" ] 
     104while [ ${#} -gt 0 ] 
    104105do 
    105106   case ${1} in 
  • trunk/twindoi.sh

    r109 r116  
    8686unset system 
    8787# 
     88set -u 
     89# 
    8890command=$(basename ${0}) 
    8991log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    9294usage=" Usage : ${command} -i filein -t type" 
    9395# 
    94 set +u 
    95 while [ ! -z "${1}" ] 
     96while [ ${#} -gt 0 ] 
    9697do 
    9798   case ${1} in 
     
    115116done 
    116117unset usage 
    117 # 
    118 set -u 
    119118# 
    120119# check for filein 
  • trunk/user_rest.xsl

    r111 r116  
    77<!--rst 
    88 
    9 .. _user_html.xsl: 
     9.. _user_rest.xsl: 
    1010 
    1111============= 
    12 user_html.xsl 
     12user_rest.xsl 
    1313============= 
    1414 
    15 transformation docbook en plusieurs html avec formulaire 
     15transformation docbook en plusieurs rest avec formulaire 
     16 
     17TODO 
     18==== 
     19 
     20make it work 
    1621 
    1722EVOLUTIONS 
    1823========== 
    1924 
    20 $Id$ 
     25$URL$  
     26$Id$  
    2127 
    22 - fplod 2008-09-17T10:23:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
    23  
    24   * add a link to project homepage at the bottom of the page 
    25  
    26 - fplod 2007-04-18T08:15:46Z aedon.locean-ipsl.upmc.fr (Darwin) 
     28- fplod 20110629T123732Z cratos.locean-ipsl.upmc.fr (Linux) 
    2729 
    2830  * création 
     
    3032--> 
    3133 
    32 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> 
     34<xsl:import href="db_rest.xsl"/> 
    3335 
    34 <xsl:output method="xml" 
    35 encoding="utf-8" 
    36 indent="yes" 
    37 omit-xml-declaration="yes" 
    38 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
    39 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> 
     36<xsl:output method="text"/> 
    4037 
    4138<xsl:include href="titlepage.superbib.xsl"/> 
    4239<xsl:include href="message_lang.xsl"/> 
    4340 
    44 <xsl:include href="form_html.xsl"/> 
     41<xsl:include href="form_rest.xsl"/> 
    4542 
    4643<xsl:template match="*" mode="book.titlepage.mode"/> 
     
    5855  <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/> 
    5956  <xsl:with-param name="date" select="$makedate"/> 
    60   <xsl:with-param name="mode" select="'html'"/> 
     57  <xsl:with-param name="mode" select="'rest'"/> 
    6158 </xsl:call-template> 
    6259 
Note: See TracChangeset for help on using the changeset viewer.