Skip to content

Commit

Permalink
Refs #581 - add some more clarification about mac/unix to os condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Nov 2, 2016
1 parent 7e60b99 commit 88f7bd7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/docbook5/en/source/chapters/projcomponents.xml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,16 @@
</listitem>
</itemizedlist>

<para>Note: machines running OSX match on the <literal>mac</literal> and <literal>unix</literal> families!
To test for Macs that don't run a Unix-like OS, use the following code:</para>
<programlisting language="xml">&lt;condition property="isMacOsButNotMacOsX"&gt;
&lt;and&gt;
&lt;os family="mac"/&gt;
&lt;not&gt;
&lt;os family="unix"/&gt;
&lt;/not&gt;
&lt;/and&gt;
&lt;/condition&gt;</programlisting>
</sect2>
<sect2 xml:id="conditions.equals">
<title><literal>equals</literal></title>
Expand Down

0 comments on commit 88f7bd7

Please sign in to comment.