diff bin/publishstaticweb.py @ 158:8ec9ed76d67b

Make the template used by bin/publishstaticweb.py configurable.
author Bernhard Herzog <bh@intevation.de>
date Tue, 17 Jun 2008 18:06:21 +0000
parents 9a602d8eaa60
children 1fcdffbeb9de
line wrap: on
line diff
--- a/bin/publishstaticweb.py	Wed Jun 11 12:59:17 2008 +0000
+++ b/bin/publishstaticweb.py	Tue Jun 17 18:06:21 2008 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/python2.4
-# Copyright (C) 2007 by Intevation GmbH
+# Copyright (C) 2007, 2008 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh@intevation.de>
 #
@@ -28,7 +28,7 @@
     """
     return os.path.expandvars(os.path.expanduser(filename))
 
-staticweb_desc = ["build_user", "build_host", "build_create",
+staticweb_desc = ["build_user", "build_host", "build_create", "build_template",
                   ("build_dir", remove_trailing_slashes),
                   "publish_user", "publish_host",
                   ("publish_dir", remove_trailing_slashes),
@@ -53,7 +53,8 @@
     config = read_config(config_filename)
 
     # create web-page on build host
-    call(cmdexpand("ssh $build_user$@$build_host $build_create $build_dir",
+    call(cmdexpand("ssh $build_user$@$build_host $build_create"
+                   " --status-template=$build_template $build_dir",
                    **config))
 
     # rsync the new web-pages to the local cache
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)