]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfiles2html.py
Publish .bashrc.
[phdru.name/phdru.name.git] / dotfiles2html / dotfiles2html.py
index b7a66ce438a8df19cd235673d7254e776a6af289..54e3d699c3025ab88f6767edea651eca07531bd1 100755 (executable)
@@ -52,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)
@@ -122,3 +123,4 @@ def process_files(file_types):
 
 process_files(home_file_types)
 process_files(mc_file_types)
+process_files(python_file_types)