Author: hwright
Date: Mon Jun 13 10:19:56 2011
New Revision: 1135077

URL: http://svn.apache.org/viewvc?rev=1135077&view=rev
Log:
Simplify a statement and add some section delimiters.

* tools/dist/release.py
  (run_script): Remove an intermediate step.
  [elsewhere]: Add section comments.

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1135077&r1=1135076&r2=1135077&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Mon Jun 13 10:19:56 2011
@@ -42,6 +42,9 @@ import subprocess
 import argparse       # standard in Python 2.7
 
 
+#----------------------------------------------------------------------
+# Utility functions
+
 def get_prefix(base_dir):
     return os.path.join(base_dir, 'prefix')
 
@@ -49,8 +52,7 @@ def get_tempdir(base_dir):
     return os.path.join(base_dir, 'tempdir')
 
 def run_script(script):
-    lines = script.split('\n')
-    for l in lines:
+    for l in script.split('\n'):
         subprocess.check_call(l.split())
 
 
@@ -61,6 +63,9 @@ def cleanup(base_dir, args):
     shutil.rmtree(get_tempdir(base_dir), True)
 
 
+#----------------------------------------------------------------------
+# Creating and environment to roll the release
+
 def build_env(base_dir, args):
     'Download prerequisites for a release and prepare the environment.'
 
@@ -129,6 +134,9 @@ def announce(base_dir, args):
     'Write the release announcement.'
 
 
+#----------------------------------------------------------------------
+# Main entry point for argument parsing and handling
+
 def main():
     'Parse arguments, and drive the appropriate subcommand.'
 


Reply via email to