chiark / gitweb /
Pick --revert option (formerly --reverse)
[stgit] / setup.py
index 81854d3573155549b96dfbbc7f3a00cb2d5847c3..3f5ccb27ae9c46db164af23874411b0b2abecd1b 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -58,9 +58,8 @@ def __run_setup():
             ('share/stgit/templates', glob.glob('templates/*.tmpl')),
             ('share/stgit/examples', glob.glob('examples/*.tmpl')),
             ('share/stgit/examples', ['examples/gitconfig']),
-            ('share/stgit/contrib', ['contrib/diffcol.sh',
-                                     'contrib/stgbashprompt.sh',
-                                     'contrib/stgit-completion.bash']),
+            ('share/stgit/contrib', ['contrib/stgbashprompt.sh']),
+            ('share/stgit/completion', ['stgit-completion.bash'])
             ])
 
 # Check the minimum versions required
@@ -71,11 +70,8 @@ if sys.argv[1] in ['install', 'build']:
 # ensure readable template files
 old_mask = os.umask(0022)
 
-try:
-    version.write_builtin_version()
-    __run_setup()
-finally:
-    version.delete_builtin_version()
+version.write_builtin_version()
+__run_setup()
 
 # restore the old mask
 os.umask(old_mask)