You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/01/27 02:10:15 UTC

svn commit: r903519 - /subversion/trunk/tools/dist/dist.sh

Author: hwright
Date: Wed Jan 27 01:10:15 2010
New Revision: 903519

URL: http://svn.apache.org/viewvc?rev=903519&view=rev
Log:
* tools/dist/dist.sh:
  Run the python detection script only after exporting it.

Modified:
    subversion/trunk/tools/dist/dist.sh

Modified: subversion/trunk/tools/dist/dist.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/dist.sh?rev=903519&r1=903518&r2=903519&view=diff
==============================================================================
--- subversion/trunk/tools/dist/dist.sh (original)
+++ subversion/trunk/tools/dist/dist.sh Wed Jan 27 01:10:15 2010
@@ -204,16 +204,6 @@
 DISTPATH="$DIST_SANDBOX/$DISTNAME"
 DEPSPATH="$DIST_SANDBOX/deps/$DISTNAME"
 
-# Check for a recent enough Python
-PYTHON="`$DISTPATH/build/find_python.sh`"
-if test -z "$PYTHON"; then
-  echo "Python 2.4 or later is required to run dist.sh"
-  echo "If you have a suitable Python installed, but not on the"
-  echo "PATH, set the environment variable PYTHON to the full path"
-  echo "to the Python executable, and re-run dist.sh"
-  exit 1
-fi
-
 echo "Distribution will be named: $DISTNAME"
 echo "     constructed from path: /$REPOS_PATH"
 echo " constructed from revision: $REVISION"
@@ -247,6 +237,16 @@
 # (See http://svn.haxx.se/dev/archive-2009-12/0205.shtml)
 rm -rf "$DISTPATH/packages"
 
+# Check for a recent enough Python
+PYTHON="`$DISTPATH/build/find_python.sh`"
+if test -z "$PYTHON"; then
+  echo "Python 2.4 or later is required to run dist.sh"
+  echo "If you have a suitable Python installed, but not on the"
+  echo "PATH, set the environment variable PYTHON to the full path"
+  echo "to the Python executable, and re-run dist.sh"
+  exit 1
+fi
+
 install_dependency()
 {
   DEP_NAME=$1