Lines Matching refs:options

12 #  Use "-h" to get help options.
87 (options, args) = parser.parse_args()
89 optVars = vars(options)
96 if options.verbose>0:
97 print("Options: "+str(options))
99 if (os.path.isdir(options.tmpdir) and options.deltmpdir):
100 if options.verbose>1:
101 print("Deleting tmp dir %s.." % (options.tmpdir))
102 shutil.rmtree(options.tmpdir)
104 if not (os.path.isdir(options.tmpdir)):
105 os.mkdir(options.tmpdir)
107 print("Please delete tmpdir %s before beginning." % options.tmpdir)
110 if options.endian not in ("big","little","host"):
111 print("Unknown endianness: %s" % options.endian)
114 if options.endian == "host":
115 options.endian = endian
117 if not os.path.isdir(options.tmpdir):
118 print("Error, tmpdir not a directory: %s" % (options.tmpdir))
121 if not os.path.isfile(options.filterfile):
122 print("Filterfile doesn't exist: %s" % (options.filterfile))
125 if not os.path.isfile(options.datfile):
126 print("Datfile doesn't exist: %s" % (options.datfile))
129 if not options.datfile.endswith(".dat"):
130 print("Datfile doesn't end with .dat: %s" % (options.datfile))
133 outfile = os.path.join(options.tmpdir, options.outfile)
139 if not options.outfile.endswith(".dat"):
140 print("Outfile doesn't end with .dat: %s" % (options.outfile))
143 dataname=options.outfile[0:-4]
148 if(options.toolpath):
149 cmd = os.path.join(options.toolpath, tool) + " " + cmd
153 if(options.verbose>4):
163 with io.open(options.filterfile, encoding='utf-8') as fi:
166 if options.locales:
169 config["variables"]["locales"]["only"] = options.locales.split(',')
171 if options.verbose > 6:
175 print("%s: %s" % (options.filterfile, config["comment"]))
179 endian_letter = options.endian[0]
181 runcmd("icupkg", "-t%s %s %s""" % (endian_letter, options.datfile, outfile))
184 listfile = os.path.join(options.tmpdir,"icudata.lst")
191 if options.verbose > 1:
215 if options.verbose > 0:
220 if options.verbose > 5:
227 if options.verbose > 4:
231 if(options.verbose>2):
240 if(options.verbose>0):
250 if(options.verbose>6):
255 if(options.verbose>1):
282 if(options.verbose>6):
286 treelistfile = os.path.join(options.tmpdir,"%s.lst" % tree)
292 print(" Warning: filter file %s does not mention trees.%s - will be kept as-is" % (options.filterfile, tree))
303 if(options.verbose>1):
307 hackerrfile=os.path.join(options.tmpdir, "REMOVE.err")
308 removefile = os.path.join(options.tmpdir, "REMOVE.lst")
313 if(options.verbose>5):
325 if(options.verbose > 5):
331 if(options.verbose > 5):
346 treebunddir = options.tmpdir
355 runcmd("icupkg","-s %s -a %s%s %s" % (options.tmpdir, trees[tree]["treeprefix"], RES_INDX, outfile))