]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add .htaccess for content negotiation with documentation index
authorJohn Mandereau <john.mandereau@gmail.com>
Mon, 19 Feb 2007 14:33:25 +0000 (15:33 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Mon, 19 Feb 2007 14:33:25 +0000 (15:33 +0100)
buildscripts/www_post.py

index a8dc9b9ce09194986399d29983e1eb051bd6edef..09ae7b80fb42f67929bfea59d0ad7e67a285b0b0 100644 (file)
@@ -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)