diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-05 16:49:41 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-05 16:49:41 +0100 |
commit | 4daba6be8394fc394b135659d70525ae1171249f (patch) | |
tree | 03674c6fca2861e300635c0e81816700648ff8b1 | |
parent | d9356599ae399461ddd91a0a38e48615dc94f7d8 (diff) | |
download | unperish-4daba6be8394fc394b135659d70525ae1171249f.tar.gz |
Add docstrings for subcommands.
This way, unperish --help will show them.
-rwxr-xr-x | unperish | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -110,22 +110,27 @@ class Unperish(cliapp.Application): return '%s-%s' % (self.upstream_name, self.upstream_version) def cmd_dump_meta(self, args): + '''Print out contents of project meta file (project.meta).''' self.meta.write(self.output) def cmd_export(self, args): + '''Export unpacked source directory to build area.''' self.runcmd('bzr', 'export', self.join(self.dirname)) def cmd_debian_tarball(self, args): + '''Generate Debian tarball (.orig.tar.gz) in build area.''' origtar = self.join(self.debian_tarball) self.runcmd('bzr', 'export', origtar) def cmd_dsc(self, args): + '''Create Debian source package (.dsc) in build area.''' if self.settings['upload-target']: self.add_debian_changelog_entry() self.runcmd('dpkg-source', '-b', self.dirname, cwd=self.settings['build-area']) def cmd_deb(self, args): + '''Build Debian binary packages (.deb) in build area.''' pat = '%s_%s.dsc' % (self.debian_source_package, self.debian_version) dsc = glob.glob(self.join(pat))[0] argv = ['sudo', |