Crossfire Server, Trunk
convertall.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # This Python script installs all guilds to their location.
3 import os
4 from optparse import OptionParser
5 from guilds import guilds
6 parser = OptionParser()
7 parser.add_option("--local-copy",dest="local_copy",help="puts a copy of generated files in a templates/guild/<guildname>",default=False,action="store_true")
8 parser.add_option("--no-install-copy",dest="install_copy",help="installs a remote copy to the destination directory. If false, only configures the files for installation.",default=False,action="store_true")
9 
10 (options, args) = parser.parse_args()
11 local_copy = " --local-copy" if options.local_copy else ""
12 local_copy+=' --no-install-copy' if options.install_copy else ''
13 for guild in guilds:
14  c = " ".join(map(str, guild))
15  print(c + local_copy)
16  os.system('./convert.py '+c + local_copy)
disinfect.map
map
Definition: disinfect.py:4