Changeset 80
- Timestamp:
- 10/30/08 10:10:11 (16 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/makefile
r76 r80 17 17 # ++ amélioration de la page index 18 18 # 19 # ++ faire un livre avec tout20 #21 19 # EVOLUTIONS 22 20 # ========== … … 24 22 # $Id$ 25 23 # 24 # - fplod 2008-10-28T10:59:44Z aedon.locean-ipsl.upmc.fr (Darwin) 25 # 26 # * add newpage directive 27 # (thanks to http://docutils.sourceforge.net/docs/user/latex.html) 28 # 26 29 # - fplod 2008-09-17T09:16:08Z aedon.locean-ipsl.upmc.fr (Darwin) 27 30 # * add xsl files … … 37 40 # .. _extract_rst.sh: ../extract_rst.sh.html 38 41 # 39 # docutils ++ lien40 #41 42 #+ 42 43 # 43 44 PRODUCT = \ 44 45 superbib 46 47 PRODUCTNAME = \ 48 $$(echo $(PRODUCT) | tr -s [:lower:] [:upper:]) 45 49 46 50 DIRBASE = \ … … 117 121 before : 118 122 @before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -mono -l en 123 @mkdir -p $(DIRWWW)/manuals/html/ 124 @mkdir -p $(DIRWWW)/manuals/pdf/ 119 125 120 126 install : … … 123 129 clean : 124 130 -@rm -fr $(DIRWWW)/ 131 -@rm -fr $(DIRWWW)/manuals/html/ 132 -@rm -fr $(DIRWWW)/manuals/pdf 125 133 -@rm -f $(DIRTMP)/all.xml 126 134 -@rm -f $(DIRTMP)/*.rst 135 -@rm -f $(DIRTMP)/*.rst[12] 136 -@rm -f $(DIRTMP)/links.rst* 127 137 -@rm -f $(DIRTMP)/*.tex 128 138 -@rm -f $(DIRTMP)/*.aux … … 145 155 146 156 man_html : \ 147 $(DIRWWW)/ index.html \148 $(DIRWWW)/ before.sh.html \149 $(DIRWWW)/ linkchecker.sh.html \150 $(DIRWWW)/ma iltouser.sh.html \151 $(DIRWWW)/ twindoi.sh.html \152 $(DIRWWW)/ install.sh.html \153 $(DIRWWW)/ bibopa.sh.html \154 $(DIRWWW)/ components_db.xsl.html \155 $(DIRWWW)/ form_db.xsl.html \156 $(DIRWWW)/ma in_html.xsl.html \157 $(DIRWWW)/m essage_lang.xsl.html \158 $(DIRWWW)/ superbib01_xml.xsl.html \159 $(DIRWWW)/ superbib02_html.xsl.html \160 $(DIRWWW)/ superbib02_xml.xsl.html \161 $(DIRWWW)/ superbibmany01_html.xsl.html \162 $(DIRWWW)/ superbibmany01_xml.xsl.html \163 $(DIRWWW)/ superbibmany02_html.xsl.html \164 $(DIRWWW)/ superbibmany02_xml.xsl.html \165 $(DIRWWW)/ template_db.xsl.html \166 $(DIRWWW)/ user_db.xsl.html \167 $(DIRWWW)/ user_html.xsl.html \168 $(DIRWWW)/ timestamp.php.html157 $(DIRWWW)/manuals/html/index.html \ 158 $(DIRWWW)/manuals/html/before.sh.html \ 159 $(DIRWWW)/manuals/html/linkchecker.sh.html \ 160 $(DIRWWW)/manuals/html/mailtouser.sh.html \ 161 $(DIRWWW)/manuals/html/twindoi.sh.html \ 162 $(DIRWWW)/manuals/html/install.sh.html \ 163 $(DIRWWW)/manuals/html/bibopa.sh.html \ 164 $(DIRWWW)/manuals/html/components_db.xsl.html \ 165 $(DIRWWW)/manuals/html/form_db.xsl.html \ 166 $(DIRWWW)/manuals/html/main_html.xsl.html \ 167 $(DIRWWW)/manuals/html/message_lang.xsl.html \ 168 $(DIRWWW)/manuals/html/superbib01_xml.xsl.html \ 169 $(DIRWWW)/manuals/html/superbib02_html.xsl.html \ 170 $(DIRWWW)/manuals/html/superbib02_xml.xsl.html \ 171 $(DIRWWW)/manuals/html/superbibmany01_html.xsl.html \ 172 $(DIRWWW)/manuals/html/superbibmany01_xml.xsl.html \ 173 $(DIRWWW)/manuals/html/superbibmany02_html.xsl.html \ 174 $(DIRWWW)/manuals/html/superbibmany02_xml.xsl.html \ 175 $(DIRWWW)/manuals/html/template_db.xsl.html \ 176 $(DIRWWW)/manuals/html/user_db.xsl.html \ 177 $(DIRWWW)/manuals/html/user_html.xsl.html \ 178 $(DIRWWW)/manuals/html/timestamp.php.html 169 179 170 180 man_pdf : \ 171 $(DIRWWW)/before.sh.pdf \ 172 $(DIRWWW)/linkchecker.sh.pdf \ 173 $(DIRWWW)/mailtouser.sh.pdf \ 174 $(DIRWWW)/twindoi.sh.pdf \ 175 $(DIRWWW)/install.sh.pdf \ 176 $(DIRWWW)/bibopa.sh.pdf \ 177 $(DIRWWW)/components_db.xsl.pdf \ 178 $(DIRWWW)/form_db.xsl.pdf \ 179 $(DIRWWW)/main_html.xsl.pdf \ 180 $(DIRWWW)/message_lang.xsl.pdf \ 181 $(DIRWWW)/superbib01_html.xsl.pdf \ 182 $(DIRWWW)/superbib01_xml.xsl.pdf \ 183 $(DIRWWW)/superbib02_html.xsl.pdf \ 184 $(DIRWWW)/superbib02_xml.xsl.pdf \ 185 $(DIRWWW)/superbibmany01_html.xsl.pdf \ 186 $(DIRWWW)/superbibmany01_xml.xsl.pdf \ 187 $(DIRWWW)/superbibmany02_html.xsl.pdf \ 188 $(DIRWWW)/superbibmany02_xml.xsl.pdf \ 189 $(DIRWWW)/template_db.xsl.pdf \ 190 $(DIRWWW)/user_db.xsl.pdf \ 191 $(DIRWWW)/user_html.xsl.pdf \ 192 $(DIRWWW)/timestamp.php.pdf 193 194 $(DIRWWW)/index.html : \ 181 $(DIRWWW)/manuals/pdf/$(PRODUCT)_manuals.pdf \ 182 $(DIRWWW)/manuals/pdf/before.sh.pdf \ 183 $(DIRWWW)/manuals/pdf/linkchecker.sh.pdf \ 184 $(DIRWWW)/manuals/pdf/mailtouser.sh.pdf \ 185 $(DIRWWW)/manuals/pdf/twindoi.sh.pdf \ 186 $(DIRWWW)/manuals/pdf/install.sh.pdf \ 187 $(DIRWWW)/manuals/pdf/bibopa.sh.pdf \ 188 $(DIRWWW)/manuals/pdf/components_db.xsl.pdf \ 189 $(DIRWWW)/manuals/pdf/form_db.xsl.pdf \ 190 $(DIRWWW)/manuals/pdf/main_html.xsl.pdf \ 191 $(DIRWWW)/manuals/pdf/message_lang.xsl.pdf \ 192 $(DIRWWW)/manuals/pdf/superbib01_html.xsl.pdf \ 193 $(DIRWWW)/manuals/pdf/superbib01_xml.xsl.pdf \ 194 $(DIRWWW)/manuals/pdf/superbib02_html.xsl.pdf \ 195 $(DIRWWW)/manuals/pdf/superbib02_xml.xsl.pdf \ 196 $(DIRWWW)/manuals/pdf/superbibmany01_html.xsl.pdf \ 197 $(DIRWWW)/manuals/pdf/superbibmany01_xml.xsl.pdf \ 198 $(DIRWWW)/manuals/pdf/superbibmany02_html.xsl.pdf \ 199 $(DIRWWW)/manuals/pdf/superbibmany02_xml.xsl.pdf \ 200 $(DIRWWW)/manuals/pdf/template_db.xsl.pdf \ 201 $(DIRWWW)/manuals/pdf/user_db.xsl.pdf \ 202 $(DIRWWW)/manuals/pdf/user_html.xsl.pdf \ 203 $(DIRWWW)/manuals/pdf/timestamp.php.pdf 204 205 $(DIRWWW)/manuals/html/index.html : \ 195 206 $(DIRTMP)/index.rst 196 rst2html.py --input-encoding=ISO-8859-15 --strict \ 197 $< $@ 207 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 208 $< $@ 209 210 $(DIRWWW)/manuals/pdf/$(PRODUCT)_manuals.pdf : \ 211 $(DIRTMP)/$(PRODUCT)_manuals.tex 212 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 213 214 $(DIRTMP)/$(PRODUCT)_manuals.tex : \ 215 $(DIRTMP)/$(PRODUCT)_manuals.rst 216 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 217 $< $@ 218 219 $(DIRTMP)/$(PRODUCT)_manuals.rst : \ 220 $(DIRTMP)/index.rst \ 221 $(LIST_SRCSH) \ 222 $(LIST_SRCXSL) \ 223 $(LIST_SRCPHP) 224 cat $(DIRTMP)/index.rst > ${DIRTMP}/$(PRODUCT)_manuals.rst1 225 @for file in $(LIST_SRCSH) $(LIST_SRCXSL) $(LIST_SRCPHP); \ 226 do echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 227 echo ".. raw:: latex" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 228 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 229 echo " \newpage" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 230 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 231 echo "$$(basename $${file})" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 232 echo "$$(basename $${file} | tr [:print:] =)" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ; \ 233 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 234 sed -e "s/^==*$$/-----------------/" ${DIRTMP}/$$(basename $${file}).rst >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 235 done 236 grep "\.\. _.*: .*$$" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 237 ${DIRTMP}/links.rst 238 sed -e "s/^ *//" ${DIRTMP}/links.rst | sort -u > ${DIRTMP}/links.rst2 239 sed -e "/\.\. _.*: .*$$/d" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 240 ${DIRTMP}/$(PRODUCT)_manuals.rst2 241 cat ${DIRTMP}/$(PRODUCT)_manuals.rst2 ${DIRTMP}/links.rst2 > $@ 198 242 199 243 $(DIRTMP)/index.rst : 200 244 echo "===================" >> $@ 201 echo "$(PRODUCT ) tools" >> $@245 echo "$(PRODUCTNAME) tools" >> $@ 202 246 echo "===================" >> $@ 203 247 echo " " >> $@ … … 213 257 for file in $(LIST_SRCPHP); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}): $$(basename $${file}).html"; done >> $@ 214 258 215 $(DIRWWW)/ before.sh.html : \259 $(DIRWWW)/manuals/html/before.sh.html : \ 216 260 $(DIRTMP)/before.sh.rst 217 rst2html.py --input-encoding=ISO-8859-15 --strict\218 $< $@ 219 220 $(DIRWWW)/ before.sh.pdf : \261 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 262 $< $@ 263 264 $(DIRWWW)/manuals/pdf/before.sh.pdf : \ 221 265 $(DIRTMP)/before.sh.tex 222 pdflatex -output-directory $(DIRWWW)/ $<266 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 223 267 224 268 $(DIRTMP)/before.sh.tex : \ 225 269 $(DIRTMP)/before.sh.rst 226 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\270 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 227 271 $< $@ 228 272 … … 231 275 @extract_rst.sh -i $< -l sh -o $@ 232 276 233 $(DIRWWW)/ linkchecker.sh.html : \277 $(DIRWWW)/manuals/html/linkchecker.sh.html : \ 234 278 $(DIRTMP)/linkchecker.sh.rst 235 rst2html.py --input-encoding=ISO-8859-15 --strict\236 $< $@ 237 238 $(DIRWWW)/ linkchecker.sh.pdf : \279 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 280 $< $@ 281 282 $(DIRWWW)/manuals/pdf/linkchecker.sh.pdf : \ 239 283 $(DIRTMP)/linkchecker.sh.tex 240 pdflatex -output-directory $(DIRWWW)/ $<241 pdflatex -output-directory $(DIRWWW)/ $<284 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 285 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 242 286 243 287 $(DIRTMP)/linkchecker.sh.tex : \ 244 288 $(DIRTMP)/linkchecker.sh.rst 245 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\289 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 246 290 $< $@ 247 291 … … 250 294 @extract_rst.sh -i $< -l sh -o $@ 251 295 252 $(DIRWWW)/ma iltouser.sh.html : \296 $(DIRWWW)/manuals/html/mailtouser.sh.html : \ 253 297 $(DIRTMP)/mailtouser.sh.rst 254 rst2html.py --input-encoding=ISO-8859-15 --strict\255 $< $@ 256 257 $(DIRWWW)/ma iltouser.sh.pdf : \298 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 299 $< $@ 300 301 $(DIRWWW)/manuals/pdf/mailtouser.sh.pdf : \ 258 302 $(DIRTMP)/mailtouser.sh.tex 259 pdflatex -output-directory $(DIRWWW)/ $<260 pdflatex -output-directory $(DIRWWW)/ $<303 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 304 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 261 305 262 306 $(DIRTMP)/mailtouser.sh.tex : \ 263 307 $(DIRTMP)/mailtouser.sh.rst 264 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\308 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 265 309 $< $@ 266 310 … … 269 313 @extract_rst.sh -i $< -l sh -o $@ 270 314 271 $(DIRWWW)/ twindoi.sh.html : \315 $(DIRWWW)/manuals/html/twindoi.sh.html : \ 272 316 $(DIRTMP)/twindoi.sh.rst 273 rst2html.py --input-encoding=ISO-8859-15 --strict\274 $< $@ 275 276 $(DIRWWW)/ twindoi.sh.pdf : \317 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 318 $< $@ 319 320 $(DIRWWW)/manuals/pdf/twindoi.sh.pdf : \ 277 321 $(DIRTMP)/twindoi.sh.tex 278 pdflatex -output-directory $(DIRWWW)/ $<279 pdflatex -output-directory $(DIRWWW)/ $<322 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 323 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 280 324 281 325 $(DIRTMP)/twindoi.sh.tex : \ 282 326 $(DIRTMP)/twindoi.sh.rst 283 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\327 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 284 328 $< $@ 285 329 … … 287 331 $(DIRSRC)/twindoi.sh 288 332 @extract_rst.sh -i $< -l sh -o $@ 289 $(DIRWWW)/install.sh.html : \ 333 334 $(DIRWWW)/manuals/html/install.sh.html : \ 290 335 $(DIRTMP)/install.sh.rst 291 rst2html.py --input-encoding=ISO-8859-15 --strict\292 $< $@ 293 294 $(DIRWWW)/ install.sh.pdf : \336 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 337 $< $@ 338 339 $(DIRWWW)/manuals/pdf/install.sh.pdf : \ 295 340 $(DIRTMP)/install.sh.tex 296 pdflatex -output-directory $(DIRWWW)/ $<297 pdflatex -output-directory $(DIRWWW)/ $<341 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 342 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 298 343 299 344 $(DIRTMP)/install.sh.tex : \ 300 345 $(DIRTMP)/install.sh.rst 301 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\346 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 302 347 $< $@ 303 348 … … 306 351 @extract_rst.sh -i $< -l sh -o $@ 307 352 308 $(DIRWWW)/ bibopa.sh.html : \353 $(DIRWWW)/manuals/html/bibopa.sh.html : \ 309 354 $(DIRTMP)/bibopa.sh.rst 310 rst2html.py --input-encoding=ISO-8859-15 --strict\311 $< $@ 312 313 $(DIRWWW)/ bibopa.sh.pdf : \355 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 356 $< $@ 357 358 $(DIRWWW)/manuals/pdf/bibopa.sh.pdf : \ 314 359 $(DIRTMP)/bibopa.sh.tex 315 pdflatex -output-directory $(DIRWWW)/ $<316 pdflatex -output-directory $(DIRWWW)/ $<360 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 361 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 317 362 318 363 $(DIRTMP)/bibopa.sh.tex : \ 319 364 $(DIRTMP)/bibopa.sh.rst 320 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\365 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 321 366 $< $@ 322 367 … … 325 370 @extract_rst.sh -i $< -l sh -o $@ 326 371 327 $(DIRWWW)/ components_db.xsl.html : \372 $(DIRWWW)/manuals/html/components_db.xsl.html : \ 328 373 $(DIRTMP)/components_db.xsl.rst 329 rst2html.py --input-encoding=ISO-8859-15 --strict\330 $< $@ 331 332 $(DIRWWW)/ components_db.xsl.pdf : \374 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 375 $< $@ 376 377 $(DIRWWW)/manuals/pdf/components_db.xsl.pdf : \ 333 378 $(DIRTMP)/components_db.xsl.tex 334 pdflatex -output-directory $(DIRWWW)/ $<335 pdflatex -output-directory $(DIRWWW)/ $<379 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 380 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 336 381 337 382 $(DIRTMP)/components_db.xsl.tex : \ 338 383 $(DIRTMP)/components_db.xsl.rst 339 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\384 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 340 385 $< $@ 341 386 … … 344 389 @extract_rst.sh -i $< -l xml -o $@ 345 390 346 $(DIRWWW)/ form_db.xsl.html : \391 $(DIRWWW)/manuals/html/form_db.xsl.html : \ 347 392 $(DIRTMP)/form_db.xsl.rst 348 rst2html.py --input-encoding=ISO-8859-15 --strict\349 $< $@ 350 351 $(DIRWWW)/ form_db.xsl.pdf : \393 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 394 $< $@ 395 396 $(DIRWWW)/manuals/pdf/form_db.xsl.pdf : \ 352 397 $(DIRTMP)/form_db.xsl.tex 353 pdflatex -output-directory $(DIRWWW)/ $<354 pdflatex -output-directory $(DIRWWW)/ $<398 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 399 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 355 400 356 401 $(DIRTMP)/form_db.xsl.tex : \ 357 402 $(DIRTMP)/form_db.xsl.rst 358 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\403 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 359 404 $< $@ 360 405 … … 363 408 @extract_rst.sh -i $< -l xml -o $@ 364 409 365 $(DIRWWW)/ma in_html.xsl.html : \410 $(DIRWWW)/manuals/html/main_html.xsl.html : \ 366 411 $(DIRTMP)/main_html.xsl.rst 367 rst2html.py --input-encoding=ISO-8859-15 --strict\368 $< $@ 369 370 $(DIRWWW)/ma in_html.xsl.pdf : \412 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 413 $< $@ 414 415 $(DIRWWW)/manuals/pdf/main_html.xsl.pdf : \ 371 416 $(DIRTMP)/main_html.xsl.tex 372 pdflatex -output-directory $(DIRWWW)/ $<373 pdflatex -output-directory $(DIRWWW)/ $<417 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 418 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 374 419 375 420 $(DIRTMP)/main_html.xsl.tex : \ 376 421 $(DIRTMP)/main_html.xsl.rst 377 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\422 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 378 423 $< $@ 379 424 … … 382 427 @extract_rst.sh -i $< -l xml -o $@ 383 428 384 $(DIRWWW)/m essage_lang.xsl.html : \429 $(DIRWWW)/manuals/html/message_lang.xsl.html : \ 385 430 $(DIRTMP)/message_lang.xsl.rst 386 rst2html.py --input-encoding=ISO-8859-15 --strict\387 $< $@ 388 389 $(DIRWWW)/m essage_lang.xsl.pdf : \431 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 432 $< $@ 433 434 $(DIRWWW)/manuals/pdf/message_lang.xsl.pdf : \ 390 435 $(DIRTMP)/message_lang.xsl.tex 391 pdflatex -output-directory $(DIRWWW)/ $<392 pdflatex -output-directory $(DIRWWW)/ $<436 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 437 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 393 438 394 439 $(DIRTMP)/message_lang.xsl.tex : \ 395 440 $(DIRTMP)/message_lang.xsl.rst 396 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\441 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 397 442 $< $@ 398 443 … … 401 446 @extract_rst.sh -i $< -l xml -o $@ 402 447 403 $(DIRWWW)/ superbib01_html.xsl.html : \448 $(DIRWWW)/manuals/html/superbib01_html.xsl.html : \ 404 449 $(DIRTMP)/superbib01_html.xsl.rst 405 rst2html.py --input-encoding=ISO-8859-15 --strict\406 $< $@ 407 408 $(DIRWWW)/ superbib01_html.xsl.pdf : \450 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 451 $< $@ 452 453 $(DIRWWW)/manuals/pdf/superbib01_html.xsl.pdf : \ 409 454 $(DIRTMP)/superbib01_html.xsl.tex 410 pdflatex -output-directory $(DIRWWW)/ $<411 pdflatex -output-directory $(DIRWWW)/ $<455 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 456 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 412 457 413 458 $(DIRTMP)/superbib01_html.xsl.tex : \ 414 459 $(DIRTMP)/superbib01_html.xsl.rst 415 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\460 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 416 461 $< $@ 417 462 … … 420 465 @extract_rst.sh -i $< -l xml -o $@ 421 466 422 $(DIRWWW)/ superbib01_xml.xsl.html : \467 $(DIRWWW)/manuals/html/superbib01_xml.xsl.html : \ 423 468 $(DIRTMP)/superbib01_xml.xsl.rst 424 rst2html.py --input-encoding=ISO-8859-15 --strict\425 $< $@ 426 427 $(DIRWWW)/ superbib01_xml.xsl.pdf : \469 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 470 $< $@ 471 472 $(DIRWWW)/manuals/pdf/superbib01_xml.xsl.pdf : \ 428 473 $(DIRTMP)/superbib01_xml.xsl.tex 429 pdflatex -output-directory $(DIRWWW)/ $<430 pdflatex -output-directory $(DIRWWW)/ $<474 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 475 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 431 476 432 477 $(DIRTMP)/superbib01_xml.xsl.tex : \ 433 478 $(DIRTMP)/superbib01_xml.xsl.rst 434 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\479 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 435 480 $< $@ 436 481 … … 439 484 @extract_rst.sh -i $< -l xml -o $@ 440 485 441 $(DIRWWW)/ superbib02_html.xsl.html : \486 $(DIRWWW)/manuals/html/superbib02_html.xsl.html : \ 442 487 $(DIRTMP)/superbib02_html.xsl.rst 443 rst2html.py --input-encoding=ISO-8859-15 --strict\444 $< $@ 445 446 $(DIRWWW)/ superbib02_html.xsl.pdf : \488 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 489 $< $@ 490 491 $(DIRWWW)/manuals/pdf/superbib02_html.xsl.pdf : \ 447 492 $(DIRTMP)/superbib02_html.xsl.tex 448 pdflatex -output-directory $(DIRWWW)/ $<449 pdflatex -output-directory $(DIRWWW)/ $<493 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 494 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 450 495 451 496 $(DIRTMP)/superbib02_html.xsl.tex : \ 452 497 $(DIRTMP)/superbib02_html.xsl.rst 453 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\498 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 454 499 $< $@ 455 500 … … 458 503 @extract_rst.sh -i $< -l xml -o $@ 459 504 460 $(DIRWWW)/ superbib02_xml.xsl.html : \505 $(DIRWWW)/manuals/html/superbib02_xml.xsl.html : \ 461 506 $(DIRTMP)/superbib02_xml.xsl.rst 462 rst2html.py --input-encoding=ISO-8859-15 --strict\463 $< $@ 464 465 $(DIRWWW)/ superbib02_xml.xsl.pdf : \507 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 508 $< $@ 509 510 $(DIRWWW)/manuals/pdf/superbib02_xml.xsl.pdf : \ 466 511 $(DIRTMP)/superbib02_xml.xsl.tex 467 pdflatex -output-directory $(DIRWWW)/ $<468 pdflatex -output-directory $(DIRWWW)/ $<512 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 513 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 469 514 470 515 $(DIRTMP)/superbib02_xml.xsl.tex : \ 471 516 $(DIRTMP)/superbib02_xml.xsl.rst 472 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\517 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 473 518 $< $@ 474 519 … … 477 522 @extract_rst.sh -i $< -l xml -o $@ 478 523 479 $(DIRWWW)/ superbibmany01_html.xsl.html : \524 $(DIRWWW)/manuals/html/superbibmany01_html.xsl.html : \ 480 525 $(DIRTMP)/superbibmany01_html.xsl.rst 481 rst2html.py --input-encoding=ISO-8859-15 --strict\482 $< $@ 483 484 $(DIRWWW)/ superbibmany01_html.xsl.pdf : \526 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 527 $< $@ 528 529 $(DIRWWW)/manuals/pdf/superbibmany01_html.xsl.pdf : \ 485 530 $(DIRTMP)/superbibmany01_html.xsl.tex 486 pdflatex -output-directory $(DIRWWW)/ $<487 pdflatex -output-directory $(DIRWWW)/ $<531 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 532 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 488 533 489 534 $(DIRTMP)/superbibmany01_html.xsl.tex : \ 490 535 $(DIRTMP)/superbibmany01_html.xsl.rst 491 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\536 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 492 537 $< $@ 493 538 … … 496 541 @extract_rst.sh -i $< -l xml -o $@ 497 542 498 $(DIRWWW)/ superbibmany01_xml.xsl.html : \543 $(DIRWWW)/manuals/html/superbibmany01_xml.xsl.html : \ 499 544 $(DIRTMP)/superbibmany01_xml.xsl.rst 500 rst2html.py --input-encoding=ISO-8859-15 --strict\501 $< $@ 502 503 $(DIRWWW)/ superbibmany01_xml.xsl.pdf : \545 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 546 $< $@ 547 548 $(DIRWWW)/manuals/pdf/superbibmany01_xml.xsl.pdf : \ 504 549 $(DIRTMP)/superbibmany01_xml.xsl.tex 505 pdflatex -output-directory $(DIRWWW)/ $<506 pdflatex -output-directory $(DIRWWW)/ $<550 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 551 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 507 552 508 553 $(DIRTMP)/superbibmany01_xml.xsl.tex : \ 509 554 $(DIRTMP)/superbibmany01_xml.xsl.rst 510 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\555 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 511 556 $< $@ 512 557 … … 515 560 @extract_rst.sh -i $< -l xml -o $@ 516 561 517 $(DIRWWW)/ superbibmany02_html.xsl.html : \562 $(DIRWWW)/manuals/html/superbibmany02_html.xsl.html : \ 518 563 $(DIRTMP)/superbibmany02_html.xsl.rst 519 rst2html.py --input-encoding=ISO-8859-15 --strict\520 $< $@ 521 522 $(DIRWWW)/ superbibmany02_html.xsl.pdf : \564 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 565 $< $@ 566 567 $(DIRWWW)/manuals/pdf/superbibmany02_html.xsl.pdf : \ 523 568 $(DIRTMP)/superbibmany02_html.xsl.tex 524 pdflatex -output-directory $(DIRWWW)/ $<525 pdflatex -output-directory $(DIRWWW)/ $<569 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 570 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 526 571 527 572 $(DIRTMP)/superbibmany02_html.xsl.tex : \ 528 573 $(DIRTMP)/superbibmany02_html.xsl.rst 529 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\574 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 530 575 $< $@ 531 576 … … 534 579 @extract_rst.sh -i $< -l xml -o $@ 535 580 536 $(DIRWWW)/ superbibmany02_xml.xsl.html : \581 $(DIRWWW)/manuals/html/superbibmany02_xml.xsl.html : \ 537 582 $(DIRTMP)/superbibmany02_xml.xsl.rst 538 rst2html.py --input-encoding=ISO-8859-15 --strict\539 $< $@ 540 541 $(DIRWWW)/ superbibmany02_xml.xsl.pdf : \583 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 584 $< $@ 585 586 $(DIRWWW)/manuals/pdf/superbibmany02_xml.xsl.pdf : \ 542 587 $(DIRTMP)/superbibmany02_xml.xsl.tex 543 pdflatex -output-directory $(DIRWWW)/ $<544 pdflatex -output-directory $(DIRWWW)/ $<588 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 589 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 545 590 546 591 $(DIRTMP)/superbibmany02_xml.xsl.tex : \ 547 592 $(DIRTMP)/superbibmany02_xml.xsl.rst 548 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\593 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 549 594 $< $@ 550 595 … … 553 598 @extract_rst.sh -i $< -l xml -o $@ 554 599 555 $(DIRWWW)/ template_db.xsl.html : \600 $(DIRWWW)/manuals/html/template_db.xsl.html : \ 556 601 $(DIRTMP)/template_db.xsl.rst 557 rst2html.py --input-encoding=ISO-8859-15 --strict\558 $< $@ 559 560 $(DIRWWW)/ template_db.xsl.pdf : \602 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 603 $< $@ 604 605 $(DIRWWW)/manuals/pdf/template_db.xsl.pdf : \ 561 606 $(DIRTMP)/template_db.xsl.tex 562 pdflatex -output-directory $(DIRWWW)/ $<563 pdflatex -output-directory $(DIRWWW)/ $<607 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 608 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 564 609 565 610 $(DIRTMP)/template_db.xsl.tex : \ 566 611 $(DIRTMP)/template_db.xsl.rst 567 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\612 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 568 613 $< $@ 569 614 … … 572 617 @extract_rst.sh -i $< -l xml -o $@ 573 618 574 $(DIRWWW)/ user_db.xsl.html : \619 $(DIRWWW)/manuals/html/user_db.xsl.html : \ 575 620 $(DIRTMP)/user_db.xsl.rst 576 rst2html.py --input-encoding=ISO-8859-15 --strict\577 $< $@ 578 579 $(DIRWWW)/ user_db.xsl.pdf : \621 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 622 $< $@ 623 624 $(DIRWWW)/manuals/pdf/user_db.xsl.pdf : \ 580 625 $(DIRTMP)/user_db.xsl.tex 581 pdflatex -output-directory $(DIRWWW)/ $<582 pdflatex -output-directory $(DIRWWW)/ $<626 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 627 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 583 628 584 629 $(DIRTMP)/user_db.xsl.tex : \ 585 630 $(DIRTMP)/user_db.xsl.rst 586 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\631 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 587 632 $< $@ 588 633 … … 591 636 @extract_rst.sh -i $< -l xml -o $@ 592 637 593 $(DIRWWW)/ user_html.xsl.html : \638 $(DIRWWW)/manuals/html/user_html.xsl.html : \ 594 639 $(DIRTMP)/user_html.xsl.rst 595 rst2html.py --input-encoding=ISO-8859-15 --strict\596 $< $@ 597 598 $(DIRWWW)/ user_html.xsl.pdf : \640 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 641 $< $@ 642 643 $(DIRWWW)/manuals/pdf/user_html.xsl.pdf : \ 599 644 $(DIRTMP)/user_html.xsl.tex 600 pdflatex -output-directory $(DIRWWW)/ $<601 pdflatex -output-directory $(DIRWWW)/ $<645 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 646 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 602 647 603 648 $(DIRTMP)/user_html.xsl.tex : \ 604 649 $(DIRTMP)/user_html.xsl.rst 605 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\650 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 606 651 $< $@ 607 652 … … 610 655 @extract_rst.sh -i $< -l xml -o $@ 611 656 612 $(DIRWWW)/ timestamp.php.html : \657 $(DIRWWW)/manuals/html/timestamp.php.html : \ 613 658 $(DIRTMP)/timestamp.php.rst 614 rst2html.py --input-encoding=ISO-8859-15 --strict\615 $< $@ 616 617 $(DIRWWW)/ timestamp.php.pdf : \659 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 660 $< $@ 661 662 $(DIRWWW)/manuals/pdf/timestamp.php.pdf : \ 618 663 $(DIRTMP)/timestamp.php.tex 619 pdflatex -output-directory $(DIRWWW)/ $<620 pdflatex -output-directory $(DIRWWW)/ $<664 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 665 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 621 666 622 667 $(DIRTMP)/timestamp.php.tex : \ 623 668 $(DIRTMP)/timestamp.php.rst 624 rst2newlatex.py --input-encoding=ISO-8859-15 --strict\669 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 625 670 $< $@ 626 671 -
trunk/before.sh
r79 r80 1 1 #! /bin/sh 2 #3 2 #+ 3 # 4 4 # NAME 5 5 # ==== … … 83 83 if [ ${#} -lt ${minargcount} ] 84 84 then 85 echo "eee : not enought arguments "85 echo "eee : not enought arguments (${#} vs ${minargcount})" 86 86 echo "${usage}" 87 87 exit 1 -
trunk/biblioentry_xml.xsl
r74 r80 587 587 </xsl:otherwise> 588 588 </xsl:choose> 589 <xsl:value-of select="normalize-space(.)"/>590 <xsl:text>, </xsl:text>591 589 </xsl:template> 592 590 … … 669 667 <xsl:choose> 670 668 <xsl:when test="contains(.,'In Press') or contains(.,'In press') or contains(.,'in press') or contains(.,'in revision') or contains(.,'submitted')"> 671 <xsl: value-of select="normalize-space(.)"/>672 <xsl: text>, </xsl:text>669 <xsl:text>, </xsl:text> 670 <xsl:value-of select="normalize-space(.)"/> 673 671 </xsl:when> 674 672 <xsl:otherwise> -
trunk/bibopa.sh
r75 r80 1 1 #!/bin/bash 2 2 #+ 3 # 3 4 # NAME 4 5 # ==== … … 87 88 # ======== 88 89 # 89 # To transform the NEMO bib ilography file in raw format:90 # To transform the NEMO bibliography file in raw format: 90 91 # 91 92 # :: … … 94 95 # 95 96 # 96 # To transform a bib ilography file in mailbody format:97 # To transform a bibliography file in mailbody format: 97 98 # 98 99 # :: … … 101 102 # 102 103 # 103 # To transform a bib ilography file in bibtex format in french:104 # To transform a bibliography file in bibtex format in french: 104 105 # 105 106 # :: … … 108 109 # 109 110 # 110 # To transform the SUPERBIB demo bib ilography file in raw format:111 # To transform the SUPERBIB demo bibliography file in raw format: 111 112 # 112 113 # :: … … 115 116 # 116 117 # 117 # see also mailtouser.sh 118 # SEE ALSO 119 # ======== 120 # 121 # mailtouser.sh_ 122 # 123 # .. _mailtouser.sh : mailtouser.sh.html 118 124 # 119 125 # FILES … … 125 131 # /usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr 126 132 # 133 # 134 # TODO 135 # ==== 136 # 137 # gestion des comments 138 # 139 # gestion des id existants (cf à la fin) 140 # 141 # option debug 142 # 143 # should use iconv instead of recode 144 # for portability issue but not found yet the "flat" fonctionnality in 145 # iconv 146 # 147 # write something in the logfile ! 148 # 127 149 # EVOLUTIONS 128 150 # ========== 129 151 # 130 # ++ gestion des comments131 #132 # ++ gestion des id existants (cf à la fin)133 #134 # ++ option debug135 152 # 136 153 # 137 154 # $Id$ 138 155 # 156 # - fplod 2008-10-28T11:40:19Z aedon.locean-ipsl.upmc.fr (Darwin) 157 # 158 # * add journal "Progress In Oceanography" 159 # * add journal "Climatic Change" 160 # * add journal "Ocean Dynamics" 161 # * add journal "Phil. Trans. Roy. Soc. A" 162 # * add journal "Izvestiya Atmospheric and Oceanic Physics" 163 # * add journal "Journal of Hydrometeorology" 164 # * add journal "Remote Sensing of Environment" 165 # * add journal "Oceanology" 166 # * add journal "Water Resour. Res." 167 # * add journal "Advances in Atmospheric Sciences" 168 # * add journal "Quaternary Science Reviews" 169 # * replace "Elsevier Oceanography Series" by "Elsevier Oceanographic Series" 170 # * bug fix : unclosed date tag 171 # * trouble with flat conversion for id building ... 172 # * remove interactivity at then end (allowing redirection of stderr and 173 # stdout) 174 # * strip blank lines 175 # * bug fix : counting nb of occurences of "," technique ... to be improved 176 # 139 177 # - fplod 2008-09-16T15:19:59Z aedon.locean-ipsl.upmc.fr (Darwin) 140 178 # 141 # * comments in ReStructured Text179 # * comments in ReStructured Text 142 180 # 143 181 # - fplod 2008-05-16T10:33:16Z aedon.locean-ipsl.upmc.fr (Darwin) 144 182 # 145 # * add parameter -o for firstname/surname order in bibtex file183 # * add parameter -o for firstname/surname order in bibtex file 146 184 # 147 185 # - fplod 2008-05-15T15:15:04Z aedon.locean-ipsl.upmc.fr (Darwin) 148 186 # 149 # * new way of processing bibtex file : external/bibtex2xml.py187 # * new way of processing bibtex file : external/bibtex2xml.py 150 188 # 151 189 # - fplod 2008-04-30T07:11:58Z aedon.locean-ipsl.upmc.fr (Darwin) 152 190 # 153 # * chgt for dbk5 out154 # * xmlto 0.0.18 does'nt like this docbook release. remove155 # * usage of xml (xmlstarlet) for validation156 # * bug fix157 # * add journal names from demo1158 # * fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin)159 # * add -p option (to overide bibrefnemo in file name and id)160 # * add -l option by default en191 # * chgt for dbk5 out 192 # * xmlto 0.0.18 does'nt like this docbook release. remove 193 # * usage of xml (xmlstarlet) for validation 194 # * bug fix 195 # * add journal names from demo1 196 # * fplod 2008-03-12T16:11:07Z aedon.locean-ipsl.upmc.fr (Darwin) 197 # * add -p option (to overide bibrefnemo in file name and id) 198 # * add -l option by default en 161 199 # 162 200 # - fplod 2008-03-11T11:25:27Z aedon.locean-ipsl.upmc.fr (Darwin) 163 201 # 164 # * add bibtex entry (not finished)++202 # * add bibtex entry (not finished)++ 165 203 # 166 204 # - fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 167 205 # 168 # * <bibliomisc role="id"> replace by <biblioid class="doi">206 # * <bibliomisc role="id"> replace by <biblioid class="doi"> 169 207 # 170 208 # - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 171 209 # 172 # * Add journals210 # * Add journals 173 211 # 174 212 # - fplod 2007-05-10T09:17:09Z aedon.locean-ipsl.upmc.fr (Darwin) 175 213 # 176 # * dernières touches214 # * dernières touches 177 215 # 178 216 # - fplod 2007-04-25T10:59:49Z cerbere.locean-ipsl.upmc.fr (Linux) 179 217 # 180 # * add a filein parameter and an option for mailbody181 # * comments(line begininig with #) are now possible218 # * add a filein parameter and an option for mailbody 219 # * comments (line begininig with #) are now possible 182 220 # 183 221 # - Sebastien Masson avril 2007 184 222 # 185 # * creation223 # * creation 186 224 # 187 225 #- … … 212 250 command=$(basename ${0}) 213 251 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 214 log=/tmp/$ {command}.${log_date}252 log=/tmp/$(basename ${command} .sh).${log_date} 215 253 # 216 254 # test if xsltproc is available … … 226 264 unset tool 227 265 # 228 # test if xml 266 # test if xml is available 229 267 tool=xml 230 268 type ${tool} 1> /dev/null 2>&1 … … 240 278 # test if python is available 241 279 tool=python 280 type ${tool} 1> /dev/null 2>&1 281 status=${?} 282 if [ ${status} -ne 0 ] 283 then 284 echo " eee : ${tool} not found" 285 exit 1 286 fi 287 unset status 288 unset tool 289 # 290 # test if recode is available 291 tool=recode 242 292 type ${tool} 1> /dev/null 2>&1 243 293 status=${?} … … 450 500 jlist[${ij}]="The Courier" 451 501 ij=$(( ${ij} + 1)) 452 jlist[${ij}]="Elsevier Oceanograph icSeries"502 jlist[${ij}]="Elsevier Oceanography Series" 453 503 ij=$(( ${ij} + 1)) 454 504 jlist[${ij}]="In Conference Proceedings of the 1988 International Conference on Supercomputing" … … 501 551 ij=$(( ${ij} + 1)) 502 552 jlist[${ij}]="Physical Review Letters" 553 ij=$(( ${ij} + 1)) 554 jlist[${ij}]="Progress In Oceanography" 555 ij=$(( ${ij} + 1)) 556 jlist[${ij}]="Climatic Change" 557 ij=$(( ${ij} + 1)) 558 jlist[${ij}]="Ocean Dynamics" 559 ij=$(( ${ij} + 1)) 560 jlist[${ij}]="Phil. Trans. Roy. Soc. A" 561 ij=$(( ${ij} + 1)) 562 jlist[${ij}]="Izvestiya Atmospheric and Oceanic Physics" 563 ij=$(( ${ij} + 1)) 564 jlist[${ij}]="Journal of Hydrometeorology" 565 ij=$(( ${ij} + 1)) 566 jlist[${ij}]="Remote Sensing of Environment" 567 ij=$(( ${ij} + 1)) 568 jlist[${ij}]="Oceanology" 569 ij=$(( ${ij} + 1)) 570 jlist[${ij}]="Water Resour. Res." 571 ij=$(( ${ij} + 1)) 572 jlist[${ij}]="Advances in Atmospheric Sciences" 573 ij=$(( ${ij} + 1)) 574 jlist[${ij}]="Quaternary Science Reviews" 575 ij=$(( ${ij} + 1)) 576 jlist[${ij}]="AGU monograph Ocean Circulation Mechanisms and Impacts" 503 577 # 504 578 # following Journal name are fake ones for demo1 : references extracted from … … 525 599 # 526 600 # 527 # strip comments 601 # strip comments and blank lines 528 602 fileraw_strict=/tmp/$(basename ${fileraw})_strict 529 grep -v "^#" ${fileraw} | grep -v "^%" > ${fileraw_strict} 530 iconv -f ISO-8859-1 -t UTF-8 ${fileraw_strict} > ${fileraw_strict}2 531 mv ${fileraw_strict}2 ${fileraw_strict} 603 grep -v "^#" ${fileraw} | grep -v "^%" | sed "/^$/d" > ${fileraw_strict} 604 # following line is not compatible with XML header ++ 605 # comments for memory (why did I write this line !?) 606 # iconv -f ISO-8859-1 -t UTF-8 ${fileraw_strict} > ${fileraw_strict}2 607 # mv ${fileraw_strict}2 ${fileraw_strict} 532 608 case ${type} in 533 609 bibtex) … … 554 630 555 631 <info> 556 <date>${log_date}< date>632 <date>${log_date}</date> 557 633 </info> 558 634 EOF … … 587 663 firstsn=$( rmbl "${firstsn}" ) 588 664 ## ref id 589 refid=$( echo ${firstsn} | tr "[:upper:]" "[:lower:]" | tr -s " " "_" | tr -s "'" "_" | recode -d -f ISO-8859-1..flat )${year} 665 firstsn_flat=$( echo "${firstsn}" | recode -d -f ISO-8859-15..flat ) 666 # echo "firstsn : ${firstsn}" # ++ debug 667 # echo "firstsn_flat : ${firstsn_flat}" #++ debug 668 # test if no encoding problem after ISO-8859-15 to flat conversion 669 firstsn_test1=$(echo "${firstsn_flat}" | tr -d "[:alpha:]" | tr -d " " | tr -d "'" | tr -d "-") 670 #echo "firstsn_test1 : ${firstsn_test1}" # ++ debug 671 if [ ! -z "${firstsn_test1}" ] 672 then 673 echo "www : pb on ISO-8859-15 to flat conversion" 674 echo "www : on ${firstsn}" 675 echo "www : trying UTF-8 to flat conversion ..." 676 firstsn_flat=$( echo "${firstsn}" | recode -d -f UTF-8..flat ) 677 # test if no encoding problem after UTF-8 to flat conversion 678 firstsn_test2=$(echo "${firstsn_flat}" | tr -d "[:alpha:]" | tr -d " " | tr -d "'") 679 #echo "firstsn_test2 : A${firstsn_test2}A" # ++ debug 680 if [ ! -z "${firstsn_test2}" ] 681 then 682 echo "eee : pb on flat conversion of ${firstsn}" 683 exit 1 684 fi 685 fi 686 firstsn_lower=$( echo "${firstsn_flat}" | tr "[:upper:]" "[:lower:]") 687 firstsn_nopunct=$( echo "${firstsn_lower}" | tr -s " " "_" | tr -s "'" "_") 688 refid="${firstsn_nopunct}${year}" 689 unset firstsn_lower 690 unset firstsn_flat 691 unset firstsn_test1 692 unset firstsn_test2 590 693 num=$( grep -c "<biblioentry xml:id=\"${refid}_[0-9][0-9]\">" ${fileou} ) 591 694 num=$(( ${num} + 1 )) … … 689 792 echo "eee: Journal not found " 690 793 echo "${endline}" 691 set 794 # uncomment next line for debug 795 # set # ++ debug 692 796 exit 1 693 797 #+++ following lines are not yet validate … … 719 823 ## doi 720 824 endline=$( echo ${endline} | sed -e "s/[dD][oO][iI] *\t* *: *\t* */doi:/" ) 825 #echo "endline for doi ${endline}" 721 826 ok=$( echo ${endline} | grep -ic "doi:" ) 722 827 if [ ${ok} -eq 1 ] 723 828 then 724 829 doi=${endline##*doi:} 830 #echo "doi : $doi" 725 831 echo " <biblioid class=\"doi\">${doi}</biblioid>" >> ${fileou} 726 832 unset doi … … 731 837 echo "" 732 838 fi 733 num=$( echo ${endline} | tr -dc "," | wc -c)734 case ${num}in839 num=$( echo "${endline}" | tr -dc "," | wc -c | tr -d " ") 840 case "${num}" in 735 841 0) 736 842 ### echo ${num}: ${endline} … … 872 978 ;; 873 979 *) 874 echo ${num}: ${endline}# ++debug875 #set 980 #echo "${num}: ${endline}" # ++debug 981 #set # ++ debug 876 982 #exit 1 #++ debug 877 983 cat <<EOF >> ${fileou} … … 911 1017 echo "iii : which was done just to check consistence of ${fileou}" 912 1018 more xmlstarlet.log 913 rm -i xmlstarlet.log914 1019 # 915 1020 case ${type} in 916 1021 raw) 917 1022 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 918 rm -i ${fileraw_strict}919 1023 ;; 920 1024 mailbody) 921 1025 echo "iii : ${fileraw} contains a copy of input file" 922 rm -i ${fileraw}923 1026 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 924 rm -i ${fileraw_strict}925 1027 ;; 926 1028 esac -
trunk/components_db.xsl
r76 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== … … 40 41 41 42 * creation 43 42 44 --> 43 45 -
trunk/form_db.xsl
r76 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== … … 44 45 45 46 * creation 47 46 48 --> 47 49 -
trunk/insertphp.sh
r76 r80 1 1 #! /bin/sh 2 2 #+ 3 # 3 4 # NAME 4 5 # ==== … … 67 68 # * creation to encapsulate insertphp_one.sed usage and use 68 69 # main.xml title 70 # 69 71 #- 70 72 system=$(uname) … … 79 81 command=$(basename ${0}) 80 82 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 81 log=/tmp/$ {command}.${log_date}83 log=/tmp/$(basename ${command} .sh).${log_date} 82 84 # 83 85 # test if xml is available -
trunk/install.sh
r79 r80 1 #!/bin/sh 1 #!/bin/sh -x 2 #+ 2 3 # 3 #+4 4 # NAME 5 5 # ==== … … 42 42 # - fplod 2008-09-16T15:24:26Z aedon.locean-ipsl.upmc.fr (Darwin) 43 43 # 44 # * comments in ReStructured Text44 # * comments in ReStructured Text 45 45 # 46 46 # - fplod 2008-06-17T09:10:19Z aedon.locean-ipsl.upmc.fr (Darwin) 47 47 # 48 # * add -l parameter only used in specific case at LOCEAN when user49 # parameter of persoweb must be different tthan login (ex: acmo vs fplod)50 # * replace http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" by51 # http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user}48 # * add -l parameter only used in specific case at LOCEAN when user 49 # parameter of persoweb must be different tthan login (ex: acmo vs fplod) 50 # * replace http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" by 51 # http://intranet.locean-ipsl.upmc.fr/persoweb/?fastupdate=1&user=${user} 52 52 # 53 53 # - fplod 2008-03-28T10:26:58Z aedon.locean-ipsl.upmc.fr (Darwin) … … 57 57 # - fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 58 58 # 59 # * parametrisation and translation59 # * parametrisation and translation 60 60 # 61 61 # - smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 62 62 # 63 # * can give the answer with input parameters63 # * can give the answer with input parameters 64 64 # 65 65 # - fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) … … 166 166 dirpublish=${urlpublish##*~} 167 167 cd ${dirwww} 168 lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 168 #lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} skyros.locean-ipsl.upmc.fr 169 lftp -e "mirror -R . ${dirpublish};quit" -u ${LOGNAME} www.locean-ipsl.upmc.fr 170 # pour acmo a la main ++ 171 # ++lftp -e 'mirror -R . acmo/nouveaux/;quit' -u fplod www.locean-ipsl.upmc.fr 172 169 173 # ++ log 170 174 fi -
trunk/linkchecker.sh
r75 r80 1 1 #! /bin/sh 2 2 #+ 3 # 3 4 # NAME 4 5 # ==== … … 78 79 # 79 80 # * création 81 # 80 82 #- 81 83 system=$(uname) … … 88 90 ;; 89 91 esac 90 command=$(basename ${0} .sh)92 command=$(basename ${0}) 91 93 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 92 log=/tmp/$ {command}.log.${log_date}94 log=/tmp/$(basename ${command} .sh).log.${log_date} 93 95 # 94 96 usage=" Usage : ${command} -d dircheck -u url" -
trunk/mailtouser.sh
r75 r80 1 1 #! /bin/sh 2 2 #+ 3 # 3 4 # NAME 4 5 # ==== … … 21 22 # convert email text in xml form following user.dtd 22 23 # 23 # see also bibopa.sh 24 # SEE ALSO 25 # ======== 26 # 27 # bibopa.sh_ 28 # 29 # .. _bibopa.sh : bibopa.sh.html 24 30 # 25 31 # EXAMPLES … … 78 84 ;; 79 85 esac 80 command=$(basename ${0} .sh)86 command=$(basename ${0}) 81 87 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 82 log=/tmp/$ {command}.${log_date}88 log=/tmp/$(basename ${command} .sh).${log_date} 83 89 # 84 90 usage=" Usage : ${command} -m mailbodyfile -x xmloutput" 85 91 # 86 92 # test if xmllint is available 87 type xmllint 1> /dev/null 2>&1 93 tool=xmllint 94 type ${tool} 1> /dev/null 2>&1 88 95 status=${?} 89 96 if [ ${status} -ne 0 ] 90 97 then 91 echo " eee : xmllintnot found"98 echo " eee : ${tool} not found" 92 99 exit 1 93 100 fi 101 unset tool 102 unset status 94 103 # 95 104 # check for user.dtd -
trunk/main_html.xsl
r76 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== … … 32 33 33 34 * création 35 34 36 --> 35 37 -
trunk/message_lang.xsl
r76 r80 5 5 6 6 <!--rst 7 7 8 NAME 8 9 ==== … … 26 27 27 28 * creation 29 28 30 --> 29 31 -
trunk/superbib01_html.xsl
r76 r80 9 9 NAME 10 10 ==== 11 11 12 transformation docbook en un html 12 13 … … 23 24 24 25 * création 26 25 27 --> 26 28 -
trunk/superbib02_html.xsl
r76 r80 6 6 7 7 <!--rst 8 8 9 NAME 9 10 ==== … … 21 22 22 23 * création 24 23 25 --> 24 26 -
trunk/superbib02_xml.xsl
r77 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== -
trunk/superbibmany01_html.xsl
r76 r80 21 21 22 22 - fplod 2007-05-04T09:05:49Z aedon.locean-ipsl.upmc.fr (Darwin) 23 23 24 * création à partir de bibnemomaf02_html.xsl mais user.footer.navigation 24 25 au lieu de user.footer.content 26 25 27 --> 26 28 -
trunk/superbibmany01_xml.xsl
r77 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== … … 49 50 50 51 * création à partir de bibnemomaf02_xml.xsl mais liens externes 52 51 53 --> 52 54 -
trunk/superbibmany02_html.xsl
r76 r80 6 6 7 7 <!--rst 8 8 9 NAME 9 10 ==== … … 21 22 22 23 - fplod 2007-04-06T10:30:31Z aedon.locean-ipsl.upmc.fr (Darwin) 24 23 25 * création 26 24 27 --> 25 28 -
trunk/superbibmany02_xml.xsl
r76 r80 7 7 8 8 <!--rst 9 9 10 NAME 10 11 ==== … … 51 52 52 53 * creation 54 53 55 --> 54 56 -
trunk/template_db.xsl
r76 r80 8 8 9 9 <!--rst 10 10 11 NAME 11 12 ==== … … 33 34 34 35 * creation 36 35 37 --> 36 38 -
trunk/timestamp.php
r76 r80 22 22 23 23 * creation 24 24 25 */ 25 26 -
trunk/twindoi.sh
r75 r80 1 1 #! /bin/sh 2 2 #+ 3 # 3 4 # NAME 4 5 # ==== … … 57 58 # - fplod 2008-05-05T14:26:31Z aedon.locean-ipsl.upmc.fr (Darwin) 58 59 # 59 # * usage of xml(starlet) for doi extraction in xml file60 # * usage of xml(starlet) for doi extraction in xml file 60 61 # 61 62 # - fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 62 63 # 63 # * consolidation and homogeneisation64 # * consolidation and homogeneisation 64 65 # 65 66 # - smasson 2007-06-20T16:11:47Z 66 67 # 67 # * creation 68 # * creation 69 # 68 70 #- 69 71 # … … 79 81 command=$(basename ${0}) 80 82 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 81 log=/tmp/$ {command}.${log_date}83 log=/tmp/$(basename ${command} .sh).${log_date} 82 84 # 83 85 usage=" Usage : ${command} -i filein -t type" -
trunk/user_html.xsl
r76 r80 6 6 7 7 <!--rst 8 8 9 NAME 9 10 ====
Note: See TracChangeset
for help on using the changeset viewer.