File: SConscript

package info (click to toggle)
coq-math-classes 8.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,124 kB
  • sloc: python: 22; makefile: 20; sh: 2
file content (25 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (4)
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

import os, glob, string

nodes = ['.']
dirs = []
vs = []

while nodes:
  node = nodes.pop()
  b = os.path.basename(node)
  if node.endswith('.v') and not b.endswith('_nobuild.v'):
    vs += [File(node)]
  if os.path.isdir(node) and b != 'broken':
    dirs += [node]
    nodes += glob.glob(node + '/*')

env = DefaultEnvironment()

vos = globs = []
for node in vs:
  vo, glob = env.Coq(node)
  vos += [vo]
  globs += [glob]

Return('vs vos globs')