Changeset 274 for branches


Ignore:
Timestamp:
11/12/12 12:56:16 (12 years ago)
Author:
pinsard
Message:

new ref and update with hal inputs

Location:
branches/bibliolocean/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bibliolocean/src/genbib.sh

    r269 r274  
    139139# - fplod 20110427T110808Z cratos.locean-ipsl.upmc.fr (Linux) 
    140140# 
    141 #   * la production pdflaetx+bibtex ne fonctionne plus sur aedon. 
     141#   * la production pdflatex+bibtex ne fonctionne plus sur aedon. 
    142142#     malgrè le changement d'installation (port vs fink) rien à faire ! 
    143143#     donc - et ça va plutôt dans le bon sens - machine de référence = cratos. 
  • branches/bibliolocean/src/genprehal.sh

    r269 r274  
    3838# $URL$ 
    3939# 
     40# - fplod 20121109T104828Z cratos.locean-ipsl.upmc.fr (Linux) 
     41# 
     42#   * ajout de la production d'un pdf pour pouvoir faire des copier/coller 
     43#     parce que l'importaion massive trop pénible vue la mauvaise volonte  
     44#     de HAL (plus de XSD facilement accessible, doc pas  à jour etc.) 
     45# 
    4046# - fplod 20121108T124317Z cratos.locean-ipsl.upmc.fr (Linux) 
    4147# 
     
    5763# 
    5864. jabref_header.sh 
     65. jabref_rtf.sh 
    5966# 
    6067log_date=$(date -u +"%Y%m%dT%H%M%SZ") 
     
    7986# 
    8087tmpdir=${PROJECT_LOG}/gtbiblio/prehal/ 
    81 dirwww=${PROJECT_OD}/public_html/gtbiblio/prehal/ 
    8288rm -rf ${tmpdir} 2> /dev/null 
    8389mkdir -p ${tmpdir} 
    84 rm -rf ${dirwww} 2> /dev/null 
    85 mkdir -p ${dirwww} 
    8690# 
    8791# usefull artificial header of jabref file to enforce encoding 
     
    9599fbibmissinghalidfull=${tmpdir}/missinghalidfull.bib 
    96100fcitemissinghalidfull=${tmpdir}/missinghalidfull_cite 
    97 nlmax=30 
     101#nlmax=30 
     102nlmax=2000 
     103#bib2bib -c 'not exists hal_id' -c 'loceanteam = "mmsa"' \ 
    98104bib2bib -c 'not exists hal_id' \ 
    99105-ob ${fbibmissinghalidfull} \ 
    100106-oc ${fcitemissinghalidfull} \ 
    101107${biblioreffull} 
     108read a 
    102109if [ ! -s {fcitemissinghalidfull} ] 
    103110then 
    104111    echo "${LINENO} : eee : some hal_id in ${biblioreffull}" 
    105112    echo "see ${fcitemissinghalidfull}" 
     113    style="plain" 
     114    # generation of latex file 
     115    cat << EOF > ${fbibmissinghalidfull}.${style}.tex 
     116\documentclass[a4paper]{article} 
     117%++\usepackage[frenchb]{babel} 
     118\usepackage[latin1]{inputenc} 
     119\begin{document} 
     120% force to include all entry of the bibliography 
     121\nocite{*} 
     122% bibliography 
     123\bibliographystyle{${style}} 
     124\bibliography{${fbibmissinghalidfull}} 
     125\end{document} 
     126EOF 
     127    # processing bibliography with pdflatex (${tmpdir}/${fbibmissinghalidfull}.${style}.pdf) 
     128    pdflatex -output-directory ${tmpdir} ${fbibmissinghalidfull}.${style}.tex 
     129    bibtex ${tmpdir}/$(basename ${fbibmissinghalidfull}.${style}) 
     130    #++ warnings 
     131    pdflatex -output-directory ${tmpdir} ${fbibmissinghalidfull}.${style}.tex 
     132    pdflatex -output-directory ${tmpdir} ${fbibmissinghalidfull}.${style}.tex 
     133    # 
     134    read a 
     135    # remove temporary latex files 
     136    rm ${tmpdir}/$(basename ${fbibmissinghalidfull}.${style}.bbl) ${tmpdir}/$(basename ${fbibmissinghalidfull}.${style}.blg) ${tmpdir}/$(basename ${fbibmissinghalidfull}.${style}.log) ${tmpdir}/$(basename ${fbibmissinghalidfull}.${style}.aux) 2> /dev/null 
     137    # 
     138    #++rm ${fbibmissinghalidfull}.${style}.tex 2> /dev/null 
     139    echo "fin 1re passe latex" 
     140    # genereation rtf 
     141    jabref_rtf ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 
     142    ${fbibmissinghalidfull} toto.rtf 
     143    # 
    106144    # more than ${nlmax} entries ? 
    107145    nltot=$(wc -l ${fcitemissinghalidfull} | awk '{print $1}') 
Note: See TracChangeset for help on using the changeset viewer.