File: compiledimplementations

package info (click to toggle)
libmceliece 0~20250507-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,040 kB
  • sloc: asm: 32,164; ansic: 31,537; python: 4,460; sh: 279; makefile: 40
file content (21 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3

import os
import sys

def ok(d):
  for fn in os.listdir(d):
    if fn.endswith('.o'):
      if os.stat(d+'/'+fn).st_size == 0:
        return False
  if os.path.exists(d+'/dependencies'):
    with open(d+'/dependencies') as f:
      for line in f:
        if not ok(line.strip()):
          return False
  return True

for line in sys.stdin:
  d = line.strip()
  if ok(d):
    print(d)