diff options
author | James Yonan <james@openvpn.net> | 2010-04-22 12:53:31 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-04-22 12:53:31 +0000 |
commit | 059739e9341781d9019e07fc5119367c1630b012 (patch) | |
tree | 6839d8071558539505991895ef377baee58e960f /win/sign.py | |
parent | Minor change to doclean script: (diff) | |
download | openvpn-059739e9341781d9019e07fc5119367c1630b012.tar.xz |
Added Python-based build system for Windows in
win directory.
Fixed minor issue in TAP driver DEBUG builds where
non-null-terminated unicode strings were being
printed incorrectly.
Version 2.1.1g
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5577 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'win/sign.py')
-rw-r--r-- | win/sign.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/win/sign.py b/win/sign.py new file mode 100644 index 0000000..ee4ae72 --- /dev/null +++ b/win/sign.py @@ -0,0 +1,19 @@ +import sys
+from wb import config, choose_arch, home_fn
+
+if 'SIGNTOOL' in config:
+ sys.path.append(home_fn(config['SIGNTOOL']))
+
+def main(conf, arch):
+ from signtool import SignTool
+ st = SignTool(conf)
+ for x64 in choose_arch(arch):
+ st.sign_verify(x64=x64)
+
+# if we are run directly, and not loaded as a module
+if __name__ == "__main__":
+ if len(sys.argv) >= 2:
+ main(config, sys.argv[1])
+ else:
+ print "usage: sign <x64|x86|all>"
+ sys.exit(2)
|