[tev4lhc] / tev4lhc / findref.py Repository:
ViewVC logotype

View of /tev4lhc/findref.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Tue Jun 20 16:33:30 2006 UTC (3 years, 5 months ago) by workshop
Branch: MAIN
CVS Tags: HEAD
update
import os,sys,string,popen2

r,w=popen2.popen2('bibtex main')

bibtex_out = r.readlines()
r.close()
w.close()

dirlist=['*/*.tex', '*/*/*.tex', '*/*/*/*.tex']

for line in bibtex_out:
    if line.find("find a database")>-1:
        sline=line.split()
        reference=sline[7].strip()
        print reference
        for dirt in dirlist:
            sysline=" grep "+"\"\cite{\""+" "+dirt+" | grep "+reference[1:len(reference)-1]
            os.system(sysline)

No admin address has been configured

Powered by ViewVC 1.0-dev

ViewVC Help