2017-06-07 10:50:49 +03:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
|
2015-12-03 01:41:10 +03:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import socket
|
|
|
|
|
2017-06-07 10:50:49 +03:00
|
|
|
from optparse import OptionParser
|
|
|
|
|
2015-12-03 01:41:10 +03:00
|
|
|
socket.setdefaulttimeout(120)
|
|
|
|
|
2017-06-07 10:50:49 +03:00
|
|
|
import utils
|
|
|
|
|
2015-12-03 01:41:10 +03:00
|
|
|
if __name__ == "__main__":
|
2017-06-07 10:50:49 +03:00
|
|
|
utils.log_banner('EDGE')
|
|
|
|
|
2015-12-03 01:41:10 +03:00
|
|
|
parser = OptionParser(usage="usage: %prog [options]")
|
|
|
|
parser.add_option("-o", "--output", dest="output",
|
|
|
|
help="download to DIR, default=output/", metavar="DIR", default='output')
|
|
|
|
(options, args) = parser.parse_args()
|
|
|
|
|
|
|
|
if not options.output.endswith("/"):
|
|
|
|
options.output += "/"
|
|
|
|
|
|
|
|
info = {}
|
2017-05-19 20:44:22 +03:00
|
|
|
info["revision"] = "25.10586.0.0"
|
2015-12-03 01:41:10 +03:00
|
|
|
info["engine_type"] = "edge"
|
|
|
|
info["shell"] = False
|
2017-05-19 20:44:22 +03:00
|
|
|
info["binary"] = ""
|
2015-12-03 01:41:10 +03:00
|
|
|
|
|
|
|
if os.path.isdir(options.output):
|
|
|
|
shutil.rmtree(options.output)
|
|
|
|
os.makedirs(options.output)
|
|
|
|
|
|
|
|
fp = open(options.output + "info.json", "w")
|
|
|
|
json.dump(info, fp)
|
|
|
|
fp.close()
|