X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=dotfiles2html%2Fdotfiles2html.py;h=4d4d0165bdb7cd90165bbf88bc2a90857835bc44;hb=f35203d2c75c0b80b6a19b12e8383f7068ddd110;hp=f13e4dcaa95ed9c8262ebdaa99d78cf0d27203c0;hpb=0d40d95940a4d1000134b9ede06cf6cff512dc1b;p=phdru.name%2Fphdru.name.git diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index f13e4dc..4d4d016 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -1,5 +1,12 @@ #! /usr/local/bin/python -O +__version__ = "$Revision$"[11:-2] +__revision__ = "$Id$"[5:-2] +__date__ = "$Date$"[7:-2] +__author__ = "Oleg BroytMann " +__copyright__ = "Copyright (C) 2004-2006 PhiloSoft Design" + + import os, shutil os.umask(0022) # octal; -rw-r--r-- @@ -27,6 +34,7 @@ def add_headers(fname, prev, next): html_file.write("#attr $Prev = \"%s.html\"\n" % prev) if next: html_file.write("#attr $Next = \"%s.html\"\n" % next) + html_file.write('#attr $alternates = (("text/plain", "Plain text version", "%s"),)' % fname) html_file.write("\n") html_file.write("#def body_html\n") html_file.write("#raw\n")