aboutsummaryrefslogtreecommitdiff
path: root/bin/update_dirs.py
blob: 0f0e0f2d57c9b35139a79ed2199f095bb00c1ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/python

import os

ROOT    = "sys"
BUILD   = "build"
IGNORED = ["build", "include", "lib", "bin", ".git", "vendor", "obj", "dep"]

if __name__ == "__main__":
    for root, dirs, _ in os.walk(ROOT):
        dirs[:] = [d for d in dirs if d not in IGNORED]
        blddir  = f"{BUILD}/{root[len(ROOT)+1:]}"
        if not os.path.exists(blddir):
            os.mkdir(blddir)