[CalendarServer-changes] [13112] CalendarServer/trunk/bin/_build.sh

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 1 18:02:10 PDT 2014


Revision: 13112
          http://trac.calendarserver.org//changeset/13112
Author:   wsanchez at apple.com
Date:     2014-04-01 18:02:10 -0700 (Tue, 01 Apr 2014)
Log Message:
-----------
Undo r13049.  Doing the same thing twice is not great; need to catch this another way.

Revision Links:
--------------
    http://trac.calendarserver.org//changeset/13049

Modified Paths:
--------------
    CalendarServer/trunk/bin/_build.sh

Modified: CalendarServer/trunk/bin/_build.sh
===================================================================
--- CalendarServer/trunk/bin/_build.sh	2014-04-02 00:59:00 UTC (rev 13111)
+++ CalendarServer/trunk/bin/_build.sh	2014-04-02 01:02:10 UTC (rev 13112)
@@ -55,14 +55,6 @@
   fi;
 
   # Check for presence of a header of specified version
-  # First do an exit-status test without capturing output; if we try to get output with tail
-  # and cc exits non-zero, tail would eat the exit status.
-  printf "#include <${sys_header}>\n${version_macro}\n" | cc -x c -E - &> /dev/null;
-  if [ $? -ne 0 ]; then
-    return 1;
-  fi;
-
-  # Again, this time capture output.
   local found_version="$(printf "#include <${sys_header}>\n${version_macro}\n" | cc -x c -E - | tail -1)";
 
   if [ "${found_version}" == "${version_macro}" ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140401/48d7e905/attachment.html>


More information about the calendarserver-changes mailing list