/usr/share/syfi/demo/makeall.py is in syfi-doc 1.0.0.dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/usr/bin/env python
import os, time
from glob import glob
skiplist = ("Elements",)
times = []
for f in glob("*"):
if f in skiplist:
continue
if os.path.isdir(f):
os.chdir(f)
if os.path.isdir("cpp"):
os.chdir("cpp")
if os.path.exists("Makefile"):
t = -time.time()
os.system("make")
t += time.time()
msg = "%8.1f seconds to make %s" % (t, f)
times.append(msg)
os.chdir("..")
os.chdir("..")
print
print "="*80
print "Timing:"
print "\n".join(times)
|