~ubuntu-branches/ubuntu/saucy/openvpn/saucy-proposed

« back to all changes in this revision

Viewing changes to win/config.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-05-24 17:42:45 UTC
  • mfrom: (1.1.19) (10.2.22 sid)
  • Revision ID: package-import@ubuntu.com-20130524174245-g9y6wlforycufqy5
Tags: 2.3.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/openvpn.init.d:
    + Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    + Show per-VPN result messages.
    + Add "--script-security 2" by default for backwards compatabliity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from wb import preprocess, autogen, mod_fn, home_fn, build_config_h, build_configure_h, build_version_m4_vars, build_autodefs, make_headers_objs, dict_def
2
 
 
3
 
def main(config):
4
 
    build_config_h(config)
5
 
    build_configure_h(config, mod_fn(home_fn('configure.h')), head_comment='/* %s */\n\n' % autogen)
6
 
    build_version_m4_vars(mod_fn(mod_fn('version_m4_vars.tmp')), head_comment='/* %s */\n\n' % autogen)
7
 
    build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
8
 
    ho = make_headers_objs(home_fn('Makefile.am'))
9
 
 
10
 
    preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
11
 
               in_fn=mod_fn('msvc.mak.in'),
12
 
               out_fn=home_fn('msvc.mak'),
13
 
               quote_begin='@',
14
 
               quote_end='@',
15
 
               if_prefix='!',
16
 
               head_comment='# %s\n\n' % autogen)
17
 
 
18
 
# if we are run directly, and not loaded as a module
19
 
if __name__ == "__main__":
20
 
    from wb import config
21
 
    main(config)