- Timestamp:
- 11/08/12 14:33:39 (12 years ago)
- Location:
- branches/bibliolocean/src
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/bibliolocean/src/genbib.sh
r257 r269 85 85 # 86 86 # $URL$ 87 # 88 # - fplod 20121108T094612Z cratos.locean-ipsl.upmc.fr (Linux) 89 # 90 # * externalisation de hal dans genprehal.sh 87 91 # 88 92 # - fplod 20121015T100652Z cratos.locean-ipsl.upmc.fr (Linux) … … 304 308 cp sorttable.js ${dirwww}/ 305 309 cp sorttable.css ${dirwww}/ 306 # 310 307 311 # define team for : 308 312 # - search in bibtex file (in loceanteam field) … … 761 765 #++ process html transformation of DocBook file ++ 762 766 763 # is there any reference to be add to HAL764 biblioref_hal=$(grep -c "url = {http://hal.archives-ouvertes.fr/hal" ${biblioref} | grep ":0" | awk -F: '{print $1}')765 if [ "${biblioref_hal}" != " " ]766 then767 #++ more than 30 entries768 cat ${tmpdir}/header_jabref ${biblioref_hal} > ${biblioref}_hal.bib769 #770 # generation one XML file style prehal771 772 rm ${biblioref}.1.jabref.xml 2> /dev/null773 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \774 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \775 --output ${tmpdir}/${output_title}.1.jabref.xml,prehal \776 ${biblioref}_hal.bib777 fi778 779 767 #++rm ${biblioref} 2> /dev/null 780 768 #++rm ${biblioref}_hal 2> /dev/null -
branches/bibliolocean/src/genprehal.sh
r260 r269 2 2 #+ 3 3 # 4 # =========== 5 # gen aeres.sh6 # =========== 4 # ============ 5 # genprehal.sh 6 # ============ 7 7 # 8 8 # SYNOPSIS 9 9 # ======== 10 10 # 11 # ``./gen aeres.sh``11 # ``./genprehal.sh`` 12 12 # 13 13 # DESCRIPTION 14 14 # =========== 15 15 # 16 # aeres 2007-201216 # prehal ++ 17 17 # 18 18 # SEE ALSO … … 21 21 # genbib.sh 22 22 # 23 # next step : id labo ... tar etc. 24 # 23 25 # TODO 24 26 # ==== 25 27 # 28 # make it work : now xml produced by jabref are not ok. 29 # see prehal*.layout 30 # 26 31 # integrer dans trunk superbib 27 #28 # on ne voit pas les notes des unpublished dans le pdf plain29 32 # 30 33 # EVOLUTIONS … … 35 38 # $URL$ 36 39 # 37 # - fplod 20121 019T142841Z cratos.locean-ipsl.upmc.fr (Linux)40 # - fplod 20121108T124317Z cratos.locean-ipsl.upmc.fr (Linux) 38 41 # 39 # * fix bug on creation of rtf files for phybiocar team by aeres types when 40 # theme < 3 41 # 42 # - fplod 20120912T124959Z cratos.locean-ipsl.upmc.fr (Linux) 43 # 44 # * homogenize log message with command and LINENO 45 # * get info from aeres subset instead of the whole biblio (ie year limit) 46 # * produce a RTF file by team 47 # 48 # - fplod 20120706T101813Z cratos (Linux) 49 # 50 # * add phybiocar theme (bouzin mais ça marche) 51 # 52 # - fplod 20120705T101524Z cratos (Linux) 53 # 54 # * nouvelle technique de sélection avec bib2bib 55 # donc les unpublished avec des champs year sont maintenant sélectionnés 56 # thanks to http://www.lri.fr/~filliatr/bibtex2html/doc/manual.html#htoc14 57 # * intégration de genaeres_rtf.sh 58 # 59 # - fplod 20120419T121614Z cratos (Linux) 60 # 61 # * add copy of sorttable.js in dirwww 62 # * add copy of sorttable.css in dirwww 63 # 64 # - fplod 20120406 65 # 66 # * creation sans répéter certaines fonctionalités de genbib.sh 67 # comme les vérif. de bases, les tutuelles 42 # * creation par externalisation de la fonctionnalité (pas fini) dans genbib 68 43 # 69 44 #- … … 73 48 system=$(uname) 74 49 case "${system}" in 75 AIX|IRIX64)76 echo "${command} : ${LINENO} : www : no specific posix checking"77 ;;78 *)79 set -o posix80 ;;50 AIX|IRIX64) 51 echo "${command} : ${LINENO} : www : no specific posix checking" 52 ;; 53 *) 54 set -o posix 55 ;; 81 56 esac 82 57 # 83 . define_teams_aeres2007_2012.sh84 . define_phybiocar_theme.sh85 . jabref_rtf.sh86 58 . jabref_header.sh 87 . define_authors.sh88 59 # 89 60 log_date=$(date -u +"%Y%m%dT%H%M%SZ") … … 91 62 # 92 63 usage=" Usage : ${command}" 93 #94 # test if bibtool available95 tool=bibtool96 type ${tool} 1> /dev/null 2>&197 status=${?}98 if [ ${status} -ne 0 ]99 then100 echo "${command} : ${LINENO} : eee : ${tool} unavailable" >&2101 exit 1102 fi103 unset tool104 unset status105 64 # 106 65 # test if bib2bib available … … 110 69 if [ ${status} -ne 0 ] 111 70 then 112 echo "${command} : ${LINENO} : eee : ${tool} unavailable" >&2113 exit 171 echo "${command} : ${LINENO} : eee : ${tool} unavailable" >&2 72 exit 1 114 73 fi 115 74 unset tool … … 119 78 # n.a. 120 79 # 121 tmpdir=${PROJECT_LOG}/gtbiblio/ aeres2007_2012/122 dirwww=${PROJECT_OD}/public_html/gtbiblio/ aeres2007_2012/80 tmpdir=${PROJECT_LOG}/gtbiblio/prehal/ 81 dirwww=${PROJECT_OD}/public_html/gtbiblio/prehal/ 123 82 rm -rf ${tmpdir} 2> /dev/null 124 83 mkdir -p ${tmpdir} … … 126 85 mkdir -p ${dirwww} 127 86 # 128 # copy javascript and css for sort table in output directory 129 cp sorttable.js ${dirwww}/ 130 cp sorttable.css ${dirwww}/ 87 # usefull artificial header of jabref file to enforce encoding 88 jabref_header ${tmpdir}/header_jabref 131 89 # 132 90 # define bibliography reference file … … 134 92 biblioreffull=${tmpdir}/all.bib 135 93 cp ${biblioref_orig} ${biblioreffull} 136 biblioref=${tmpdir}/aeres2007_2012.bib137 bibliocite=${tmpdir}/aeres2007_2012_cite.bib138 94 # 139 bib2bib -oc ${bibliocite} -ob ${biblioref} \ 140 -c 'year>=2007 and year<=2012' \ 141 ${biblioreffull} 95 fbibmissinghalidfull=${tmpdir}/missinghalidfull.bib 96 fcitemissinghalidfull=${tmpdir}/missinghalidfull_cite 97 nlmax=30 98 bib2bib -c 'not exists hal_id' \ 99 -ob ${fbibmissinghalidfull} \ 100 -oc ${fcitemissinghalidfull} \ 101 ${biblioreffull} 102 if [ ! -s {fcitemissinghalidfull} ] 103 then 104 echo "${LINENO} : eee : some hal_id in ${biblioreffull}" 105 echo "see ${fcitemissinghalidfull}" 106 # more than ${nlmax} entries ? 107 nltot=$(wc -l ${fcitemissinghalidfull} | awk '{print $1}') 108 if [ ${nltot} -gt ${nlmax} ] 109 then 110 echo "${LINENO} : iii : more than ${nlmax} missing hal_id in ${biblioreffull}" 111 echo "${LINENO} : iii : need to split" 112 dsuffixsplit=$(dirname ${fcitemissinghalidfull}) 113 bsuffixsplit=$(basename ${fcitemissinghalidfull} .bib)_s 114 split -l ${nlmax} -a 3 ${fcitemissinghalidfull} ${dsuffixsplit}/${bsuffixsplit} 115 list_fcitemissinghalid=$(find ${dsuffixsplit} -name "${bsuffixsplit}???") 116 list_fbibmissinghalid="" 117 for fcitemissinghalid in ${list_fcitemissinghalid} 118 do 119 # build condition expression 120 bib2bibcond=$(sed -e "s/^/-c '\$key : \"/" -e "s/$/\"'/" ${fcitemissinghalid} | paste -s -d ' ' ) 121 # extract the references 122 fbibmissinghalid=${tmpdir}/$(basename ${fcitemissinghalid}).bib 123 bib2bibcmd=$(echo "bib2bib ${bib2bibcond} -ob ${fbibmissinghalid} ${fbibmissinghalidfull}") 124 eval ${bib2bibcmd} 125 list_fbibmissinghalid="${list_fbibmissinghalid} ${fbibmissinghalid}" 126 done 127 else 128 echo "${LINENO} : iii : less or just ${nlmax} missing hal_id in ${biblioref}" 129 echo "${LINENO} : iii : no need to split" 130 fbibmissinghalid=${tmpdir}/missinghalid.bib 131 list_fbibmissinghalid=${fbibmissinghalid} 132 cp ${fbibmissinghalidfull} ${fbibmissinghalid} 133 fi 134 for fbibmissinghalid in ${list_fbibmissinghalid} 135 do 136 fbibjmissinghalid=${tmpdir}/$(basename ${fbibmissinghalid} .bib)_jabref.bib 137 more ${tmpdir}/header_jabref 138 read a 139 wc ${fbibmissinghalid} 140 cat ${tmpdir}/header_jabref ${fbibmissinghalid} > ${fbibjmissinghalid} 141 diff ${fbibmissinghalid} ${fbibjmissinghalid} 142 read a 143 # 144 # generation one XML file style prehal 145 fxmlmissinghalid=${tmpdir}/$(basename ${fbibmissinghalid}).xml 146 rm ${fxmlmissinghalid} 2> /dev/null 147 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 148 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 149 --output ${fxmlmissinghalid},prehal \ 150 ${fbibjmissinghalid} 151 read a 152 done 153 else 154 echo "${LINENO} : iii : no missing hal_id in ${biblioref}" 155 fi 142 156 # 143 # ++ usefull artificial header of jabref file to enforce encoding 144 jabref_header ${tmpdir}/header_jabref 157 #++ clean 145 158 # 146 # génération du PDF classique147 list_style="plain" #+++148 for style in ${list_style}149 do150 rm ${dirwww}/$(basename ${biblioref}.${style}.log .log).* 2> /dev/null151 # generation of latex file152 cat << EOF > ${biblioref}.${style}.tex153 \documentclass[a4paper]{article}154 %++\usepackage[frenchb]{babel}155 \usepackage[latin1]{inputenc}156 \begin{document}157 % force to include all entry of the bibliography158 \nocite{*}159 160 % bibliography161 \bibliographystyle{${style}}162 163 \bibliography{${biblioref}}164 \end{document}165 EOF166 #167 # processing bibliography with pdflatex (${dirwww}/${biblioref}.${style}.pdf)168 rm ${dirwww}/$(basename ${biblioref}.${style}.log .log).* 2> /dev/null169 pdflatex -output-directory ${dirwww} ${biblioref}.${style}.tex170 bibtex ${dirwww}/$(basename ${biblioref}.${style})171 #++ warnings172 pdflatex -output-directory ${dirwww} ${biblioref}.${style}.tex173 pdflatex -output-directory ${dirwww} ${biblioref}.${style}.tex174 #175 # remove temporary latex files176 rm ${dirwww}/$(basename ${biblioref}.${style}.bbl) ${dirwww}/$(basename ${biblioref}.${style}.blg) ${dirwww}/$(basename ${biblioref}.${style}.log) ${dirwww}/$(basename ${biblioref}.${style}.aux) 2> /dev/null177 #178 #++rm ${biblioref}.${style}.tex 2> /dev/null179 done180 181 echo "fin 1re passe latex"182 183 # generation one RTF file style harvard184 output_title=aeres2007_2012185 rm ${biblioref}.harvard.jabref.rtf 2> /dev/null186 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \187 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \188 --output ${dirwww}/${output_title}.harvard.jabref.rtf,harvard \189 ${biblioref}190 echo "fin rtf all"191 #192 # generation of HTML193 list_format="html simplehtml tablerefs locean_tablerefs locean_tablerefsabsbibsort locean_listrefs"194 for format in ${list_format}195 do196 echo "format export jabref ${format}"197 # generation one HTML file style ${format}198 rm ${biblioref}.${format}.jabref.html 2> /dev/null199 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \200 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \201 --output ${dirwww}/${output_title}.${format}.jabref.html,${format} \202 ${biblioref}203 jabref_status=${?}204 if [ ${jabref_status} -ne 0 ]205 then206 echo "${command} : ${LINENO} : eee : pb with jabref export ${format}"207 exit 1208 fi209 done210 #211 # loop on teams and years to build bibliography reference file212 list_fteamyear=""213 iteam=1214 nbteam=${#list_team_bibtool[@]}215 while [ ${iteam} -le ${nbteam} ]216 do217 echo "${command} : ${LINENO} : iii : team = ${list_team_bibtool[${iteam}]}"218 fteam=${tmpdir}/${list_team_title[${iteam}]}.bib219 rm ${fteam} 2> /dev/null220 bibtool_command="bibtool -- 'select={aeresteam \"${list_team_bibtool[${iteam}]}\"}' ${biblioref} -o ${fteam}"221 eval ${bibtool_command}222 unset bibtool_command223 nbatteam=$(grep -c @ ${fteam})224 if [ ${nbatteam} -ge 2 ]225 then226 echo "${command} : ${LINENO} : iii : $((${nbatteam} - 1)) ref for aeresteam ${list_team_title[${iteam}]}"227 # generation one HTML file style ${format}228 format=locean_tablerefsabsbibsort229 rm ${biblioref}.${format}.jabref.html 2> /dev/null230 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \231 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \232 --output ${dirwww}/${output_title}_${list_team_title[iteam]}.${format}.jabref.html,${format} \233 ${fteam}234 jabref_status=${?}235 if [ ${jabref_status} -ne 0 ]236 then237 echo "${command} : ${LINENO} : eee : pb with jabref export ${format}"238 exit 1239 fi240 # generation one RTF file241 ofteam=${dirwww}/$(basename ${fteam} .bib).rtf242 rm ${ofteam} 2> /dev/null243 jabref_rtf \244 ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \245 ${fteam} ${ofteam}246 jabref_status=${?}247 if [ ${jabref_status} -ne 0 ]248 then249 echo "${command} : ${LINENO} : eee : pb with jabref rtf team"250 exit 1251 fi252 # loop on years253 list_year=$(seq 2007 2012)254 for iyear in ${list_year}255 do256 echo "${command} : ${LINENO} : iii : year = ${iyear}"257 fteamyear=${tmpdir}/$(basename ${fteam} .bib)_${iyear}.bib258 rm ${fteamyear} 2> /dev/null259 bibtool_command="bibtool -- 'select={year \"${iyear}\"}' ${fteam} -o ${fteamyear}"260 eval ${bibtool_command}261 unset bibtool_command262 # test if empty263 nbatteamyear=$(grep -c @ ${fteamyear})264 if [ ${nbatteamyear} -ge 2 ]265 then266 echo "${command} : ${LINENO} : iii : $((${nbatteamyear} - 1)) ref for aeresteam ${list_team_title[${iteam}]} and year ${iyear}"267 list_fteamyear="${list_fteamyear} ${fteamyear}"268 else269 echo "${command} : ${LINENO} : www : no ref for aeresteam ${list_team_title[${iteam}]} and year ${iyear}"270 fi271 unset nbatteamyear272 done # end of year loop273 unset iyear274 else275 echo "${command} : ${LINENO} : www : no ref for aeresteam ${list_team_title[${iteam}]}"276 fi277 unset nbatteam278 unset nbatteamyear279 iteam=$(( ${iteam} + 1 ))280 done # end of team loop281 unset iteam282 unset nbteam283 unset list_year284 unset fteam285 #286 # define jabref header287 # ++ usefull288 jabref_header ${tmpdir}/header_jabref289 #290 # loop on aerestype291 list_aerestype="ACL ACLN ASCL BRE C-INV C-ACTI C-ATCN C-COM C-AFF DO OR OS PV PAT PT AP"292 for aerestype in ${list_aerestype}293 do294 echo "${command} : ${LINENO} : iii : aerestype = ${aerestype}"295 for fteamyear in ${list_fteamyear}296 do297 echo "${command} : ${LINENO} : iii : fteamyear = ${fteamyear}"298 #++ add header299 fteamyeartype=${tmpdir}/$(basename ${fteamyear} .bib)_${aerestype}.bib300 rm ${fteamyeartype} 2> /dev/null301 bibtool_command="bibtool -- 'select={aerestype \"${aerestype}\"}' ${fteamyear} -o ${fteamyeartype}"302 eval ${bibtool_command}303 unset bibtool_command304 # test if empty305 nbatteamyeartype=$(grep -c @ ${fteamyeartype})306 if [ ${nbatteamyeartype} -ge 2 ]307 then308 echo "${command} : ${LINENO} : iii : $((${nbatteamyeartype} - 1)) ref type ${aerestype} in ${fteamyear}"309 ofteamyeartype=${dirwww}/$(basename ${fteamyeartype} .bib).rtf310 rm ${ofteamyeartype} 2> /dev/null311 jabref_rtf \312 ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \313 ${fteamyeartype} ${ofteamyeartype}314 # ++ test si ok315 else316 echo "${command} : ${LINENO} : www : no ref type ${aerestype} in ${fteamyear}"317 fi318 unset nbatteamyeartype319 done # end of loop on fteamyear320 done # end of loop on aerestype321 #322 # loop on authors to build bibliography reference file323 iauthor=1324 nbauthor=${#list_author_bibtool[@]}325 #++nbauthor=0 #+++326 while [ ${iauthor} -le ${nbauthor} ]327 do328 rm ${tmpdir}/tmp1.bib 2> /dev/null329 echo "author title = ${list_author_title[iauthor]}"330 echo "author grep = ${list_author_bibtool[iauthor]}"331 biblioref_author=${tmpdir}/${list_author_file[iauthor]}.bib332 bibtool_command="bibtool -- 'select={author \"${list_author_bibtool[iauthor]}\"}' ${biblioref} -o ${tmpdir}/tmp1.bib"333 eval ${bibtool_command}334 # test if no file found ++335 cat ${tmpdir}/header_jabref ${tmpdir}/tmp1.bib > ${biblioref_author}336 format=locean_tablerefsabsbibsort337 # generation one HTML file style ${format}338 rm ${biblioref}.${format}.jabref.html 2> /dev/null339 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \340 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \341 --output ${dirwww}/${output_title}_${list_author_file[iauthor]}.${format}.jabref.html,${format} \342 ${biblioref_author}343 jabref_status=${?}344 if [ ${jabref_status} -ne 0 ]345 then346 echo "${command} : ${LINENO} : eee : pb with jabref export ${format}"347 exit 1348 fi349 #++ else350 #++ echo "${command} : ${LINENO} : iii : no reference for author ${team}"351 #++ fi352 iauthor=$(( ${iauthor} + 1 ))353 done354 echo "fin auteurs"355 356 # phybiocar = team with theme357 fteam=${tmpdir}/phybiocar.bib358 rm ${fteam} 2> /dev/null359 bibtool_command="bibtool -- 'select={aeresteam \"phybiocar\"}' ${biblioref} -o ${fteam}"360 eval ${bibtool_command}361 unset bibtool_command362 nbatteam=$(grep -c @ ${fteam})363 if [ ${nbatteam} -ge 2 ]364 then365 echo "${command} : ${LINENO} : iii : $((${nbatteam} - 1)) ref for aeresteam phybiocar in ${biblioref}"366 # generation one HTML file style ${format}367 format=locean_tablerefsabsbibsort368 rm ${biblioref}.${format}.jabref.html 2> /dev/null369 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \370 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \371 --output ${dirwww}/${output_title}_phybiocar.${format}.jabref.html,${format} \372 ${fteam}373 jabref_status=${?}374 if [ ${jabref_status} -ne 0 ]375 then376 echo "${command} : ${LINENO} : eee : pb with jabref export ${format}"377 exit 1378 fi379 # loop on themes380 list_theme="1 2 3"381 list_fteamtheme=""382 list_fteamthemeyear=""383 for theme in ${list_theme}384 do385 echo "${command} : ${LINENO} : iii : theme = ${theme}"386 fteamtheme=${tmpdir}/$(basename ${fteam} .bib)_${theme}.bib387 rm ${fteamtheme} 2> /dev/null388 bibtool_command="bibtool -- 'select={phybiocartheme \"${theme}\"}' ${fteam} -o ${fteamtheme}"389 eval ${bibtool_command}390 unset bibtool_command391 # test if empty392 nbatteamtheme=$(grep -c @ ${fteamtheme})393 if [ ${nbatteamtheme} -ge 2 ]394 then395 echo "${command} : ${LINENO} : iii : $((${nbatteamtheme} - 1)) ref for aeresteam phybiocar and theme ${theme} in ${fteam}"396 list_fteamtheme="${list_fteamtheme} ${fteamtheme}"397 else398 echo "${command} : ${LINENO} : www : no ref for aeresteam phybiocar and theme ${theme}"399 fi400 #read a401 unset nbatteamtheme402 # loop on years403 list_year=$(seq 2007 2012)404 for iyear in ${list_year}405 do406 echo "${command} : ${LINENO} : iii : year = ${iyear}"407 fteamthemeyear=${tmpdir}/$(basename ${fteam} .bib)_${theme}_${iyear}.bib408 rm ${fteamthemeyear} 2> /dev/null409 bibtool_command="bibtool -- 'select={year \"${iyear}\"}' ${fteamtheme} -o ${fteamthemeyear}"410 eval ${bibtool_command}411 unset bibtool_command412 # test if empty413 nbatteamthemeyear=$(grep -c @ ${fteamthemeyear})414 if [ ${nbatteamthemeyear} -ge 2 ]415 then416 echo "${command} : ${LINENO} : iii : $((${nbatteamthemeyear} - 1)) ref for aeresteam phybiocar and theme ${theme} and year ${iyear}"417 list_fteamthemeyear="${list_fteamthemeyear} ${fteamthemeyear}"418 else419 echo "${command} : ${LINENO} : www : no ref for aeresteam phybiocar and theme ${theme} and year ${iyear}"420 fi421 #read a422 unset nbatteamthemeyear423 done # end of year loop424 done # end of them loop425 unset iyear426 else427 echo "${command} : ${LINENO} : www : no ref for aeresteam phybiocar]"428 fi429 unset list_year430 unset fteam431 #432 # define jabref header433 # ++ usefull434 jabref_header ${tmpdir}/header_jabref435 #436 # loop on aerestype437 list_aerestype="ACL ACLN ASCL BRE C-INV C-ACTI C-ATCN C-COM C-AFF DO OR OS PV PAT PT AP"438 for aerestype in ${list_aerestype}439 do440 echo "${command} : ${LINENO} : iii : aerestype = ${aerestype}"441 for fteamthemeyear in ${list_fteamthemeyear}442 do443 echo "${command} : ${LINENO} : iii : fteamthemeyear = ${fteamthemeyear}"444 #++ add header445 fteamthemeyeartype=${tmpdir}/$(basename ${fteamthemeyear} .bib)_${aerestype}.bib446 rm ${fteamthemeyeartype} 2> /dev/null447 bibtool_command="bibtool -- 'select={aerestype \"${aerestype}\"}' ${fteamthemeyear} -o ${fteamthemeyeartype}"448 eval ${bibtool_command}449 unset bibtool_command450 # test if empty451 nbatteamthemeyeartype=$(grep -c @ ${fteamthemeyeartype})452 if [ ${nbatteamthemeyeartype} -ge 2 ]453 then454 echo "${command} : ${LINENO} : iii : $((${nbatteamthemeyeartype} - 1)) ref type ${aerestype} in ${fteamthemeyear}"455 ofteamthemeyeartype=${dirwww}/$(basename ${fteamthemeyeartype} .bib).rtf456 rm ${ofteamthemeyeartype} 2> /dev/null457 jabref_rtf \458 ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \459 ${fteamthemeyeartype} ${ofteamthemeyeartype}460 # ++ test si ok461 else462 echo "${command} : ${LINENO} : www : no ref type ${aerestype} in ${fteamthemeyear}"463 fi464 unset nbatteamthemeyeartype465 done # end of loop on fteamthemeyear466 done # end of loop on aerestype467 #468 #++rm ${biblioref} 2> /dev/null469 #++rm ${tmpdir}/header_jabref 2> /dev/null470 471 159 exit 0
Note: See TracChangeset
for help on using the changeset viewer.