0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
openvpn/win/config_ti.py
Samuli Seppänen a18752d4fe Fix a bug in devcon source code handling
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>
2011-04-14 21:16:39 +02:00

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)