File: result-impl

package info (click to toggle)
lib25519 0~20241004-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 51,500 kB
  • sloc: asm: 317,113; ansic: 36,370; python: 5,332; sh: 482; makefile: 156; pascal: 13
file content (23 lines) | stat: -rwxr-xr-x 443 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
22
23
#!/usr/bin/env python3

import os
import sys

boldfaced = False

for line in sys.stdin:
  d = line.strip()
  if len(d) == 0: continue
  announced = False
  with open(d+'/result') as f:
    for fline in f:
      if not boldfaced:
        print('----- Compilation notes')
        boldfaced = True
      if not announced:
        print(d+':')
        announced = True
      sys.stdout.write('  '+fline)

if boldfaced:
  print('-----')