Changeset 216
- Timestamp:
- 06/29/12 19:56:12 (12 years ago)
- Location:
- branches/bibliolocean/src
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/bibliolocean/src/checkaeres.sh
r215 r216 1 #! /bin/sh 1 #! /bin/sh -x 2 2 #+ 3 3 # 4 4 # =============== 5 # genaeres_rtf.sh5 # checkaeres.sh 6 6 # =============== 7 7 # … … 11 11 # :: 12 12 # 13 # genaeres_rtf.sh13 # checkaeres.sh 14 14 # 15 15 # DESCRIPTION 16 16 # =========== 17 17 # 18 # aeres 2007-2012 pour inclusion dans document word18 # check for missing values in .bib for aeres 2007-2012 19 19 # 20 20 # EXAMPLES … … 23 23 # :: 24 24 # 25 # genaeres_rtf.sh25 # checkaeres.sh 26 26 # 27 27 # SEE ALSO … … 32 32 # genaeres.sh 33 33 # 34 # genaeres_rtf.sh 35 # 34 36 # TODO 35 37 # ==== 36 38 # 39 # FINIR de régdiger 40 # 37 41 # log 38 42 # 39 43 # phybiocar theme 40 #41 # look for missing values (aerestype and aeresteam)42 44 # 43 45 # EVOLUTIONS 44 46 # ========== 45 47 # 46 # - fplod 20120629T154955Z cratos (Linux) 47 # 48 # * reorganize to deal all aeres type 49 # 50 # - fplod 20120628T101424Z cratos (Linux) 48 # - fplod 20120629T161209Z cratos (Linux) 51 49 # 52 50 # * creation … … 80 78 unset status 81 79 # 80 # test if bib2bib available 81 tool=bib2bib 82 type ${tool} 1> /dev/null 2>&1 83 status=${?} 84 if [ ${status} -ne 0 ] 85 then 86 echo "${command} : eee : ${tool} unavailable" >&2 87 exit 1 88 fi 89 unset tool 90 unset status 91 # 92 # 82 93 # default 83 94 # n.a. 84 95 # 85 96 hostname=$(hostname) 86 tmpdir=${PROJECT_LOG}/aeres2007_2012 rtf/87 dirwww=${PROJECT_OD}/aeres2007_2012 rtf/97 tmpdir=${PROJECT_LOG}/aeres2007_2012check/ 98 dirwww=${PROJECT_OD}/aeres2007_2012check/ 88 99 rm -rf ${tmpdir} 2> /dev/null 89 100 mkdir -p ${tmpdir} … … 101 112 cp ${biblioref_orig} ${biblioreffull} 102 113 # 103 list_year="2007 2008 2009 2010 2011 2012" 104 # 105 # pour V.8.b 3- Articles de vulgarisation (presse en général 106 # loop on teams and years to build bibliography reference file 107 list_fteamyear="" 108 iteam=1 109 nbteam=${#list_team_bibtool[@]} 110 while [ ${iteam} -le ${nbteam} ] 111 do 112 echo "${LINENO} : iii: team = ${list_team_bibtool[${iteam}]}" 113 fteam=${tmpdir}/${list_team_title[${iteam}]}.bib 114 rm ${fteam} 2> /dev/null 115 bibtool_command="bibtool -- 'select={aeresteam \"${list_team_bibtool[${iteam}]}\"}' ${biblioreffull} -o ${fteam}" 116 eval ${bibtool_command} 117 unset bibtool_command 114 # check for missing year 115 nbmissingyear=0 116 fbibmissingyear=${tmpdir}/missingyear.bib 117 fcitemissingyear=${tmpdir}/missingyear_cite.bib 118 rm ${tmpdir}/missingyear.bib 2> /dev/null 119 bib2bib -c 'not exists year' \ 120 -ob ${fbibmissingyear} \ 121 -oc ${fcitemissingyear} \ 122 ${biblioreffull} 123 more ${fcitemissingyear} 124 echo ${missingyear} 125 if [ -s ${fcitemissingyear} ] 126 then 127 echo " ${LINENO} : eee : some missing years in ${biblioreffull}" 128 echo " see ${fcitemissingyear}" 129 #++exit 1 130 else 131 echo " ${LINENO} : iii : no missing year in ${biblioreffull}" 132 rm ${fcitemissingyear} 133 fi 134 unset missingyear 135 rm ${fcitemissingyear} 136 rm ${fbibmissingyear} 137 # 138 ++++ la suite ... 139 # check for missing aeresteam 140 # check for missing aerestype 141 # check for missing phybiocar theme 142 # 118 143 nbatteam=$(grep -c @ ${fteam}) 119 144 if [ ${nbatteam} -ge 2 ] -
branches/bibliolocean/src/genaeres_rtf.sh
r215 r216 103 103 list_year="2007 2008 2009 2010 2011 2012" 104 104 # 105 # pour V.8.b 3- Articles de vulgarisation (presse en général106 105 # loop on teams and years to build bibliography reference file 107 106 list_fteamyear=""
Note: See TracChangeset
for help on using the changeset viewer.