]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfiles2html.py
Publish .bashrc.
[phdru.name/phdru.name.git] / dotfiles2html / dotfiles2html.py
index 5359b4352b7e66cc83dd50dfd8d752b4f1a4efa6..54e3d699c3025ab88f6767edea651eca07531bd1 100755 (executable)
@@ -1,10 +1,7 @@
 #! /usr/bin/env python
 
-__version__ = "$Revision$"[11:-2]
-__revision__ = "$Id$"[5:-2]
-__date__ = "$Date$"[7:-2]
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2004-2010 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2004-2012 PhiloSoft Design"
 
 import os, shutil, filecmp
 os.umask(0022) # octal; -rw-r--r--
@@ -55,14 +52,15 @@ def add_headers(fname, first, prev, next, last):
    html_file.close()
 
 
-home_file_types = (("profile", "sh"), ("shellrc", "sh"), ("fvwm2rc", "fvwm2m4"),
-    ("mailcap", "conf"), ("mime.types", "conf"),
-    ("muttrc", "muttrc"), ("procmailrc", "procmail"),
-    ("vimrc", "vim"),
-    ("init.py", "python"), ("pdbrc", "python"), ("pdbrc.py", "python"))
+home_file_types = (("bashrc", "sh"), ("profile", "sh"), ("shellrc", "sh"),
+    ("fvwm2rc", "fvwm2m4"), ("mailcap", "conf"), ("mime.types", "conf"),
+    ("muttrc", "muttrc"), ("procmailrc", "procmail"), ("vimrc", "vim"))
 
 mc_file_types = (("bindings", "conf"), ("menu", "conf"))
 
+python_file_types = (("init.py", "python"),
+    ("pdbrc", "python"), ("pdbrc.py", "python"))
+
 def process_dotfile(i, fname, ftype, file_types):
    if os.path.exists('.' + fname) and not os.path.exists(fname):
       shutil.copy2('.' + fname, fname)
@@ -125,3 +123,4 @@ def process_files(file_types):
 
 process_files(home_file_types)
 process_files(mc_file_types)
+process_files(python_file_types)