1.1 --- a/moinsetup.py Sun May 23 03:19:15 2010 +0200
1.2 +++ b/moinsetup.py Sun May 23 22:26:29 2010 +0200
1.3 @@ -65,6 +65,11 @@
1.4 web_user = "www-data"
1.5 web_group = "www-data"
1.6
1.7 + # MoinMoin resources.
1.8 +
1.9 + theme_master = "modernized"
1.10 + extra_theme_css_files = ["SlideShow.css"]
1.11 +
1.12 def __init__(self, moin_distribution, prefix, web_app_dir, web_site_dir,
1.13 common_dir, url_path, superuser, site_name, front_page_name,
1.14 theme_default=None):
1.15 @@ -416,6 +421,18 @@
1.16 shutil.rmtree(target_dir)
1.17 shutil.copytree(join(theme_dir, d), target_dir)
1.18
1.19 + # Copy additional resources from other themes.
1.20 +
1.21 + resources_source_dir = join(self.htdocs_dir, self.theme_master)
1.22 + target_dir = join(resources_dir, "css")
1.23 +
1.24 + status("Copying resources from %s..." % resources_source_dir)
1.25 +
1.26 + for css_file in self.extra_theme_css_files:
1.27 + css_file_path = join(resources_source_dir, "css", css_file)
1.28 + if exists(css_file_path):
1.29 + shutil.copy(css_file_path, target_dir)
1.30 +
1.31 # Command line option syntax.
1.32
1.33 syntax_description = "<argument> ... [ --method=METHOD [ <method-argument> ... ] ]"