Mercurial > treepkg
comparison bin/createstaticweb.py @ 78:9a602d8eaa60
initial revision of the subversion repository
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 24 Apr 2012 17:13:43 +0200 |
parents | |
children | 4adcb15cbdfb |
comparison
equal
deleted
inserted
replaced
77:f0aa5a8af056 | 78:9a602d8eaa60 |
---|---|
1 #! /usr/bin/python2.4 | |
2 # Copyright (C) 2007 by Intevation GmbH | |
3 # Authors: | |
4 # Bernhard Herzog <bh@intevation.de> | |
5 # | |
6 # This program is free software under the GPL (>=v2) | |
7 # Read the file COPYING coming with the software for details. | |
8 | |
9 """Creates a static web-site with a status report""" | |
10 | |
11 import sys | |
12 import os | |
13 | |
14 import treepkgcmd | |
15 from treepkg.options import create_parser | |
16 from treepkg.web import Status | |
17 | |
18 def parse_commandline(): | |
19 return create_parser().parse_args() | |
20 | |
21 def create_static_site(treepkg_config, destdir): | |
22 status = Status(treepkg_config=treepkg_config) | |
23 status.create_static_site(destdir) | |
24 | |
25 def main(): | |
26 options, args = parse_commandline() | |
27 create_static_site(options.config_file, args[0]) | |
28 | |
29 main() |