[CalendarServer-dev] Problem with run script on linux

Andy Brook ducky0 at gmail.com
Wed Feb 7 10:54:28 PST 2007


I checked out the calendar server to try to get it running on
Slackware version 11.0. When I went to install it, the setup section
of the run script failed on trying to remove all the .pyc files for
the programs it was downloading. The way it's written, it will work
when there are actually files to remove, but the whole script will
fail out if the files are already missing.

The following patch makes this work correctly on Linux. I would think
it would still work as it should on OSX, but I don't have an OSX
machine to test with.

Other than this, the program works great on Linux, as long as extended
attributes are installed in the kernel.

-Andy Brook

--- run.orig 2007-02-07 13:50:35.000000000 -0500
+++ run     2007-02-07 13:50:18.000000000 -0500
@@ -216,7 +216,7 @@
   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;
+  find "${path}" -type f -name '*.pyc' -print0 | xargs -0 rm -f;
 }

 www_get () {


More information about the calendarserver-dev mailing list