mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-09 05:31:05 +08:00

The win/config_ti.py build script assumes to find ../tapinstall/7600/sources.in which does not exists in devcon.exe source code directory. This makes config_ti.py look for ../tapinstall/7600/sources instead. Signed-off-by: Samuli Seppänen <samuli@openvpn.net> Acked-by: David Sommerseth <dazo@users.sourceforge.net> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> (cherry picked from commit a18752d4febdaa91f87efcc487ac865d6587c527)
19 lines
593 B
Python
19 lines
593 B
Python
import os, shutil
|
|
from wb import preprocess, home_fn, autogen
|
|
|
|
def main(config):
|
|
src = os.path.join(home_fn(config['TISRC']), config['DDKVER_MAJOR'])
|
|
dest = home_fn('tapinstall')
|
|
shutil.rmtree(dest, ignore_errors=True)
|
|
shutil.copytree(src, dest)
|
|
preprocess(config,
|
|
in_fn=os.path.join(src, 'sources'),
|
|
out_fn=os.path.join(dest, 'sources'),
|
|
if_prefix='!',
|
|
head_comment='# %s\n\n' % autogen)
|
|
|
|
# if we are run directly, and not loaded as a module
|
|
if __name__ == "__main__":
|
|
from wb import config
|
|
main(config)
|