mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 12:23:32 +01:00
Revert "Add the creation of Emacs TAGS file"
This reverts commit f0cd410d49
This commit is contained in:
parent
f0cd410d49
commit
7605ce9452
@ -309,7 +309,6 @@ def run():
|
|||||||
|
|
||||||
pid2 = os.fork()
|
pid2 = os.fork()
|
||||||
if pid2 == 0:
|
if pid2 == 0:
|
||||||
# Create vim tags
|
|
||||||
tags = []
|
tags = []
|
||||||
l = list(variables.keys())
|
l = list(variables.keys())
|
||||||
file = open("irpf90_entities","w")
|
file = open("irpf90_entities","w")
|
||||||
@ -328,32 +327,6 @@ def run():
|
|||||||
for line in tags:
|
for line in tags:
|
||||||
file.write(line)
|
file.write(line)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# Create emacs tags
|
|
||||||
tags = {}
|
|
||||||
l = list(variables.keys())
|
|
||||||
for v in l:
|
|
||||||
line = variables[v].line
|
|
||||||
if line.filename[0] not in tags:
|
|
||||||
tags[line.filename[0]] = []
|
|
||||||
tags[line.filename[0]].append( (v,line) )
|
|
||||||
l = list(subroutines.keys())
|
|
||||||
for v in l:
|
|
||||||
line = subroutines[v].line
|
|
||||||
if line.filename not in tags:
|
|
||||||
tags[line.filename] = []
|
|
||||||
tags[line.filename].append( (v,line) )
|
|
||||||
|
|
||||||
file = open("TAGS","w")
|
|
||||||
for f in tags:
|
|
||||||
tags[f].sort()
|
|
||||||
text = ""
|
|
||||||
for v, line in tags[f]:
|
|
||||||
text += "%s\x7f%s\x01%d,0\n"%(line.text.split('!')[0].rstrip(),v,line.i)
|
|
||||||
file.write("\x0c\n%s,%d\n"%(f, len(text)))
|
|
||||||
file.write(text)
|
|
||||||
file.close()
|
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
os.waitpid(pid1,0)
|
os.waitpid(pid1,0)
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
# scemama@irsamc.ups-tlse.fr
|
# scemama@irsamc.ups-tlse.fr
|
||||||
|
|
||||||
|
|
||||||
import os,sys
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
wd = os.path.abspath(os.path.dirname(__file__))
|
wd = os.path.abspath(os.path.dirname(__file__))
|
||||||
@ -34,6 +33,7 @@ except:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
import vim
|
import vim
|
||||||
|
import os,sys
|
||||||
from command_line import command_line
|
from command_line import command_line
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user