]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfiles2html.py
Feat(dotfiles2html): No longer publish `fvwm2rc`
[phdru.name/phdru.name.git] / dotfiles2html / dotfiles2html.py
index 344a5ee63fb6c426cf8c65a02adba0905a5c79cb..0125619a4d69c2f63371c02bc9e58758283e7de6 100755 (executable)
@@ -54,10 +54,12 @@ def add_headers(fname, first, prev, next, last):
    html_file.close()
 
 
-home_file_types = (("bashrc", "sh"), ("profile", "sh"), ("shellrc", "sh"),
-    ("fvwm2rc", "fvwm2m4"), ("mailcap", "conf"), ("mime.types", "conf"),
+home_file_types = (
+    ("bashrc", "sh"), ("profile", "sh"), ("shellrc", "sh"),
+    ("mailcap", "conf"), ("mime.types", "conf"),
     ("muttrc", "muttrc"), ("procmailrc", "procmail"),
-    ("gitconfig", "gitconfig"), ("vimrc", "vim"))
+    ("gitconfig", "gitconfig"), ("vimrc", "vim"),
+)
 
 mc_file_types = (("mc.ext", "conf"), ("menu", "conf"))
 
@@ -84,6 +86,8 @@ def process_dotfile(i, fname, ftype, file_types):
       text = file.read()
       file.close()
       file = open(fname, 'w')
+      text = text.replace('mplay', 'mplayer')
+      text = text.replace('mplayerer', 'mplayer')
       if fname == 'mailcap':
          text = text.replace(
             '-a -n "`which mplayer 2>/dev/null`" -a -n "`which mplayer 2>/dev/null`"',