[CalendarServer-changes] [7372] CalendarServer/branches/users/glyph/misc-portability-fixes/support/ build.sh

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 27 11:45:06 PDT 2011


Revision: 7372
          http://trac.macosforge.org/projects/calendarserver/changeset/7372
Author:   glyph at apple.com
Date:     2011-04-27 11:45:06 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
'build' is a distutils artifact, so only delete it if distutils involved (and don't delete openldap's, which has nothing to do with distutils)

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/misc-portability-fixes/support/build.sh

Modified: CalendarServer/branches/users/glyph/misc-portability-fixes/support/build.sh
===================================================================
--- CalendarServer/branches/users/glyph/misc-portability-fixes/support/build.sh	2011-04-27 18:44:59 UTC (rev 7371)
+++ CalendarServer/branches/users/glyph/misc-portability-fixes/support/build.sh	2011-04-27 18:45:06 UTC (rev 7372)
@@ -144,10 +144,12 @@
   fi;
 
   echo "";
-  echo "Removing build directory ${path}/build...";
-  rm -rf "${path}/build";
-  echo "Removing pyc files from ${path}...";
-  find "${path}" -type f -name '*.pyc' -print0 | xargs -0 rm -f;
+  if [ -e "${path}/setup.py" ]; then
+    echo "Removing build directory ${path}/build...";
+    rm -rf "${path}/build";
+    echo "Removing pyc files from ${path}...";
+    find "${path}" -type f -name '*.pyc' -print0 | xargs -0 rm -f;
+  fi;
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110427/af4d0ae5/attachment-0001.html>


More information about the calendarserver-changes mailing list