html_file.close()
-file_types = (("fvwm2rc", "fvwm"),
+file_types = (("fvwm2rc", "fvwm2m4"),
("mailcap", "conf"), ("mime.types", "conf"),
("muttrc", "muttrc"), ("procmailrc", "procmail"),
("vimrc", "vim"), ("gvimrc", "vim"),
- ("init.py", "python"), ("init_old.py", "python"))
+ ("init.py", "python"), ("init_old.py", "python"),
+ ("pdbrc", "python"), ("pdbrc.py", "python"))
ft_len = len(file_types)
for i, (fname, ftype) in enumerate(file_types):
else:
next = file_types[i+1][0]
add_headers(fname, prev, next)
- if not filecmp.cmp(fname + ".html", fname + ".tmpl"):
- os.rename(fname + ".html", fname + ".tmpl")
- else:
+ if os.path.exists(fname + ".tmpl") and filecmp.cmp(fname + ".html", fname + ".tmpl"):
os.remove(fname + ".html")
+ else:
+ os.rename(fname + ".html", fname + ".tmpl")
os.chmod(fname, 0644)