Changeset 1783f75 in mainline for tools/ew.py


Ignore:
Timestamp:
2019-08-17T12:49:43Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e503cea9
Parents:
b3ff685
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-29 14:08:34)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Remove autotool.py

Meson does everything that it was used for.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rb3ff685 r1783f75  
    3434
    3535import os
     36import platform
     37import re
     38import subprocess
    3639import sys
    37 import subprocess
    38 import autotool
    39 import platform
    4040import thread
    4141import time
    4242
    4343overrides = {}
     44
     45CONFIG = 'Makefile.config'
     46
     47def read_config():
     48        "Read HelenOS build configuration"
     49
     50        inf = open(CONFIG, 'r')
     51        config = {}
     52
     53        for line in inf:
     54                res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line)
     55                if (res):
     56                        config[res.group(1)] = res.group(2)
     57
     58        inf.close()
     59        return config
    4460
    4561def is_override(str):
     
    494510                        exit()
    495511
    496         config = {}
    497         autotool.read_config(autotool.CONFIG, config)
     512        config = read_config()
    498513
    499514        if 'PLATFORM' in config.keys():
Note: See TracChangeset for help on using the changeset viewer.