From: John Mandereau Date: Mon, 19 Feb 2007 14:33:25 +0000 (+0100) Subject: Add .htaccess for content negotiation with documentation index X-Git-Tag: release/2.11.20-1~18^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=336baeee5ef0a0eb98cd99ee73efc93f30d856fc;p=lilypond.git Add .htaccess for content negotiation with documentation index --- diff --git a/buildscripts/www_post.py b/buildscripts/www_post.py index a8dc9b9ce0..09ae7b80fb 100644 --- a/buildscripts/www_post.py +++ b/buildscripts/www_post.py @@ -72,6 +72,12 @@ for t in targets: p = mirrortree.new_link_path (os.path.normpath (os.readlink (l)), os.path.dirname (l), strip_re) os.symlink (p, strip_file_name[t] (l)) +# need this for content negotiation with documentation index +if 'online' in targets: + f = open (os.path.join (target_pattern % 'online', 'Documentation/.htaccess'), 'w') + f.write ('#.htaccess\nDirectoryIndex index\n') + f.close () + add_html_footer.build_pages_dict (html_files) for t in targets: sys.stderr.write ("Processing HTML pages for %s target...\n" % t)