From 09796bf9b3db9a8ecbc5075af5c651dd51d1076f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 10 Dec 2009 15:44:28 +0000 Subject: [PATCH] Rename *.py to *.py.txt. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@95 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- dotfiles2html/dotfiles2html.py | 4 ++++ dotfiles2html/init.py.head | 2 +- dotfiles2html/pdbrc.py.head | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index 491af24..bcc919c 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -82,5 +82,9 @@ for i, (fname, ftype) in enumerate(file_types): os.rename(fname + ".html", fname + ".tmpl") if fname == 'vimrc' and os.path.exists('.' + fname): shutil.copy2('.' + fname, fname) + if fname.endswith('.py'): + new_name = fname + '.txt' + os.rename(fname, new_name) + fname = new_name if os.path.exists(fname): os.chmod(fname, 0644) diff --git a/dotfiles2html/init.py.head b/dotfiles2html/init.py.head index 9f6f0da..b56e3f9 100644 --- a/dotfiles2html/init.py.head +++ b/dotfiles2html/init.py.head @@ -11,7 +11,7 @@ # Due to nested_scopes and pydoc.help(*args, **kwds) this file only works with # Python 2.1 or higher. # -# Text version here +# Text version here # # Generated by gvim :runtime syntax/2html.vim # diff --git a/dotfiles2html/pdbrc.py.head b/dotfiles2html/pdbrc.py.head index cd84a9b..b5cc25d 100644 --- a/dotfiles2html/pdbrc.py.head +++ b/dotfiles2html/pdbrc.py.head @@ -1,7 +1,7 @@
 # This is startup file for interactive python debugger.
 #
-# Text version here
+# Text version here
 #
 # Generated by gvim :runtime syntax/2html.vim
 #
-- 
2.39.5