diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-03-29 22:16:54 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-03-29 22:16:54 +0100 |
commit | 1d1b299adb65209a87b948628d3d7d057ef7892b (patch) | |
tree | bc9be4598345c7f4a573d8ed4cb80a55c847e3ee | |
parent | 6bc01616ad2fd338c94b80a2cd517998fd7c121b (diff) | |
download | liw-automation-1d1b299adb65209a87b948628d3d7d057ef7892b.tar.gz |
Add rebuild command to journal-note
-rwxr-xr-x | scripts/journal-note | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/journal-note b/scripts/journal-note index ebbb57e..013f4c9 100755 --- a/scripts/journal-note +++ b/scripts/journal-note @@ -59,6 +59,7 @@ class App(object): 'attach': self.attach_entry, 'remove': self.remove_entry, 'finish': self.finish_entry, + 'rebuild': self.rebuild_journal, } opts, args = self.parse_args() @@ -184,9 +185,12 @@ class App(object): argv.append(finished_dir) subprocess.check_call(argv, cwd=src) subprocess.check_call(['bzr', 'commit', '-m', 'new note'], cwd=src) + self.rebuild_journal(args, opts) + + def rebuild_journal(self, args, opts): subprocess.check_call(['ikiwiki', '--setup', '../ikiwiki.setup', '--refresh'], - cwd=src) + cwd=os.path.join(opts.base, 'src')) if __name__ == '__main__': |