Changeset 74 for trunk/bibopa.sh


Ignore:
Timestamp:
06/17/08 11:22:47 (16 years ago)
Author:
pinsard
Message:

add documents in before.sh, add -l parameter in install.sh, several improvement for bibtex bibliography

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bibopa.sh

    r71 r74  
    117117# 
    118118# test if xsltproc is available 
    119 type xsltproc 1> /dev/null 2>&1 
     119tool=xsltproc 
     120type ${tool} 1> /dev/null 2>&1 
    120121status=${?} 
    121122if [ ${status} -ne 0 ] 
    122123then 
    123  echo " eee : xsltproc not found" 
     124 echo " eee : ${tool} not found" 
    124125 exit 1 
    125126fi 
    126127unset status 
     128unset tool 
    127129# 
    128130# test if xml  is available 
    129 type xml 1> /dev/null 2>&1 
     131tool=xml 
     132type ${tool} 1> /dev/null 2>&1 
    130133status=${?} 
    131134if [ ${status} -ne 0 ] 
    132135then 
    133  echo " eee : xml not found" 
     136 echo " eee : ${tool} not found" 
    134137 exit 1 
    135138fi 
    136139unset status 
     140unset tool 
    137141# 
    138142# test if python is available 
    139 type python 1> /dev/null 2>&1 
     143tool=python 
     144type ${tool} 1> /dev/null 2>&1 
    140145status=${?} 
    141146if [ ${status} -ne 0 ] 
    142147then 
    143  echo " eee : python not found}" 
     148 echo " eee : ${tool} not found" 
    144149 exit 1 
    145150fi 
    146151unset status 
     152unset tool 
    147153# 
    148154usage=" Usage : ${command} -i filein -t type -o order -p project -l lang" 
     
    424430fileraw_strict=/tmp/$(basename ${fileraw})_strict 
    425431grep -v "^#" ${fileraw} | grep -v "^%" > ${fileraw_strict} 
     432iconv -f ISO-8859-1 -t UTF-8 ${fileraw_strict} > ${fileraw_strict}2 
     433mv ${fileraw_strict}2 ${fileraw_strict} 
    426434case ${type} in 
    427435bibtex)  
Note: See TracChangeset for help on using the changeset viewer.