comparison bin/treepkgbuilder.py @ 210:63f73bb9c459

Add build command to bin/treepkgbuilder.py
author Bernhard Herzog <bh@intevation.de>
date Fri, 14 Nov 2008 19:41:21 +0000
parents 6624e731e218
children 98c5aab790bb
comparison
equal deleted inserted replaced
209:cbcd8f549ff7 210:63f73bb9c459
126 126
127 def run(self): 127 def run(self):
128 self.get_builder().login() 128 self.get_builder().login()
129 129
130 130
131 class BuildCommand(Command):
132
133 names = ("build",)
134
135 def create_parser(self):
136 parser = super(BuildCommand, self).create_parser()
137 parser.add_option("--logfile", help=("The file for the build log."))
138 parser.add_option("--binary-dir",
139 help=("Directory for the binary packages."))
140 return parser
141
142 def run(self):
143 if len(self.rest) != 1:
144 print >>sys.stderr, "Exactly one .dsc file must be specified"
145 sys.exit(1)
146 dsc_file = self.rest[0]
147 self.get_builder().build(dsc_file, binary_dir=self.opts.binary_dir,
148 logfile=self.opts.logfile)
149
150
131 class HelpCommand(Command): 151 class HelpCommand(Command):
132 152
133 names = ("help", "--help", "-h") 153 names = ("help", "--help", "-h")
134 154
135 def run(self): 155 def run(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)