Changeset 4
- Timestamp:
- 06/06/07 12:13:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mailtousernemo.sh
- Property svn:keywords set to Id
r2 r4 17 17 # ++ gestion des comments 18 18 # ++ gestion de la signature 19 # $Id$ 20 # fplod 2007-06-06T09:27:55Z aedon.locean-ipsl.upmc.fr (Darwin) 21 # correction for Off-Line and PC Cluster 19 22 # fplod 2007-05-18T08:31:48Z aedon.locean-ipsl.upmc.fr (Darwin) 20 23 # add off-line and agrif components … … 114 117 element=component 115 118 #++ récupérer les usersnemo/usernemo[child::userid='template']/components/component/name 119 unset jlist 120 unset jlist_name 116 121 j=1 117 122 jlist[${j}]="OPA" 123 jlist_name[${j}]="OPA" 118 124 j=$((${j} + 1)) 119 125 jlist[${j}]="LIM" 126 jlist_name[${j}]="LIM" 120 127 j=$((${j} + 1)) 121 128 jlist[${j}]="TOP" 129 jlist_name[${j}]="TOP" 122 130 j=$((${j} + 1)) 123 131 jlist[${j}]="TAM" 132 jlist_name[${j}]="TAM" 124 133 j=$((${j} + 1)) 125 134 jlist[${j}]="SAXO" 126 j=$((${j} + 1)) 127 jlist[${j}]="OFF-LINE" 135 jlist_name[${j}]="SAXO" 136 j=$((${j} + 1)) 137 jlist[${j}]="offline" 138 jlist_name[${j}]="Off-line" 128 139 j=$((${j} + 1)) 129 140 jlist[${j}]="AGRIF" 141 jlist_name[${j}]="AGRIF" 130 142 echo "<${elements}>" >> ${xmloutput} 131 143 components_date=$(grep "components_date=" ${mailbodyfile} | awk -F"=" '{print $2}') … … 143 155 then 144 156 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 145 echo "<name>${jlist [j]}</name>" >> ${xmloutput}157 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 146 158 echo "<value>yes</value>" >> ${xmloutput} 147 159 echo "</${element}>" >> ${xmloutput} 148 160 else 149 161 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 150 echo "<name>${jlist [j]}</name>" >> ${xmloutput}162 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 151 163 echo "<value>no</value>" >> ${xmloutput} 152 164 echo "</${element}>" >> ${xmloutput} … … 159 171 elements=platforms 160 172 #++ récupérer les usersnemo/usernemo[child::userid='template']/platforms/platform/name 173 unset jlist 174 unset jlist_name 161 175 j=1 162 176 jlist[${j}]="CRAY" 177 jlist_name[${j}]="CRAY" 163 178 j=$((${j} + 1)) 164 179 jlist[${j}]="IBM" 180 jlist_name[${j}]="IBM" 165 181 j=$((${j} + 1)) 166 182 jlist[${j}]="FUJITSU" 183 jlist_name[${j}]="FUJITSU" 167 184 j=$((${j} + 1)) 168 185 jlist[${j}]="MAC" 186 jlist_name[${j}]="MAC" 169 187 j=$((${j} + 1)) 170 188 jlist[${j}]="NEC" 189 jlist_name[${j}]="NEC" 171 190 j=$((${j} + 1)) 172 191 jlist[${j}]="SGI" 192 jlist_name[${j}]="SGI" 173 193 j=$((${j} + 1)) 174 194 jlist[${j}]="SUN" 175 j=$((${j} + 1)) 176 jlist[${j}]='PC Cluster' 195 jlist_name[${j}]="SUN" 196 j=$((${j} + 1)) 197 jlist[${j}]='pccluster' 198 jlist_name[${j}]="PC Cluster" 177 199 echo "<${elements}>" >> ${xmloutput} 178 200 ## find the element … … 188 210 then 189 211 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 190 echo "<name>${jlist [j]}</name>" >> ${xmloutput}212 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 191 213 echo "<value>yes</value>" >> ${xmloutput} 192 214 echo "</${element}>" >> ${xmloutput} 193 215 else 194 216 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 195 echo "<name>${jlist [j]}</name>" >> ${xmloutput}217 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 196 218 echo "<value>no</value>" >> ${xmloutput} 197 219 echo "</${element}>" >> ${xmloutput} … … 222 244 elements=compilers 223 245 unset jlist 246 unset jlist_name 224 247 j=1 225 248 jlist[${j}]="g95" 249 jlist_name[${j}]="g95" 226 250 j=$((${j} + 1)) 227 251 jlist[${j}]="ifort" 252 jlist_name[${j}]="ifort" 228 253 j=$((${j} + 1)) 229 254 jlist[${j}]="pgf" 255 jlist_name[${j}]="pgf" 230 256 j=$((${j} + 1)) 231 257 jlist[${j}]="sxf90" 258 jlist_name[${j}]="sxf90" 232 259 j=$((${j} + 1)) 233 260 jlist[${j}]="xlf" 261 jlist_name[${j}]="xlf" 234 262 echo "<${elements}>" >> ${xmloutput} 235 263 ## find the element … … 245 273 then 246 274 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 247 echo "<name>${jlist [j]}</name>" >> ${xmloutput}275 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 248 276 echo "<value>yes</value>" >> ${xmloutput} 249 277 echo "</${element}>" >> ${xmloutput} 250 278 else 251 279 echo "<${element} code='${jlist_min}'>" >> ${xmloutput} 252 echo "<name>${jlist [j]}</name>" >> ${xmloutput}280 echo "<name>${jlist_name[j]}</name>" >> ${xmloutput} 253 281 echo "<value>no</value>" >> ${xmloutput} 254 282 echo "</${element}>" >> ${xmloutput}
Note: See TracChangeset
for help on using the changeset viewer.