thomas@78: #! /usr/bin/python2.4 thomas@78: # Copyright (C) 2007 by Intevation GmbH thomas@78: # Authors: thomas@78: # Bernhard Herzog thomas@78: # thomas@78: # This program is free software under the GPL (>=v2) thomas@78: # Read the file COPYING coming with the software for details. thomas@78: thomas@78: """Creates a static web-site with a status report""" thomas@78: thomas@78: import sys thomas@78: import os thomas@78: thomas@78: import treepkgcmd thomas@78: from treepkg.options import create_parser thomas@78: from treepkg.web import Status thomas@78: thomas@78: def parse_commandline(): thomas@78: return create_parser().parse_args() thomas@78: thomas@78: def create_static_site(treepkg_config, destdir): thomas@78: status = Status(treepkg_config=treepkg_config) thomas@78: status.create_static_site(destdir) thomas@78: thomas@78: def main(): thomas@78: options, args = parse_commandline() thomas@78: create_static_site(options.config_file, args[0]) thomas@78: thomas@78: main()