0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00

win/sign.py now accepts an optional tap-dir argument.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7086 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
James Yonan 2011-03-25 11:06:16 +00:00 committed by David Sommerseth
parent 5d2e139852
commit 1f00199407

View File

@ -4,16 +4,20 @@ from wb import config, choose_arch, home_fn
if 'SIGNTOOL' in config:
sys.path.append(home_fn(config['SIGNTOOL']))
def main(conf, arch):
def main(conf, arch, tap_dir):
from signtool import SignTool
st = SignTool(conf)
st = SignTool(conf, tap_dir)
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])
if len(sys.argv) >= 3:
tap_dir = home_fn(sys.argv[2])
else:
print "usage: sign <x64|x86|all>"
tap_dir = None
main(config, sys.argv[1], tap_dir)
else:
print "usage: sign <x64|x86|all> [tap-dir]"
sys.exit(2)