[CalendarServer-changes] [7173] CalendarServer/trunk/support/build.sh

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 10 08:56:11 PST 2011


Revision: 7173
          http://trac.macosforge.org/projects/calendarserver/changeset/7173
Author:   sagen at apple.com
Date:     2011-03-10 08:56:09 -0800 (Thu, 10 Mar 2011)
Log Message:
-----------
Call mktemp in a way that is compatible with both OS X and Linux

Modified Paths:
--------------
    CalendarServer/trunk/support/build.sh

Modified: CalendarServer/trunk/support/build.sh
===================================================================
--- CalendarServer/trunk/support/build.sh	2011-03-10 15:48:02 UTC (rev 7172)
+++ CalendarServer/trunk/support/build.sh	2011-03-10 16:56:09 UTC (rev 7173)
@@ -210,7 +210,7 @@
         #
         # Try getting a copy from calendarserver.org.
         #
-        local tmp="$(mktemp -t "${cache_basename}")";
+        local tmp="$(mktemp "/tmp/${cache_basename}.XXXXX")";
         curl -L "http://${pkg_host}${pkg_path}/${cache_basename}" -o "${tmp}";
         echo "";
         if [ ! -s "${tmp}" ] || grep '<title>404 Not Found</title>' "${tmp}" > /dev/null; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110310/de7a3d9b/attachment-0001.html>


More information about the calendarserver-changes mailing list