Only in darwinports/doc/guide.old: xhtml
diff -u -d -b -r darwinports/doc/guide.old/xml/details.xml darwinports/doc/guide/xml/details.xml
old
|
new
|
|
17 | 17 | something more advanced and realise all that power is there.</para> |
18 | 18 | |
19 | 19 | <para>All key value pairs in a Portfile are single lines so line breaks |
20 | | must be escaped with a back solidus '\'. </para> |
| 20 | must be escaped with a back slash ('\'). </para> |
21 | 21 | <para>Variables syntax is ${foo} for the foo variant.</para> |
22 | 22 | <sect2> |
23 | 23 | <title>Special characters</title> |
24 | 24 | <para>As the Portfile is a TCL script certain charachters are |
25 | 25 | "special". These have a special meaning in TCL and if you dont |
26 | 26 | want that special meaning, they must be escaped. In general a |
27 | | charachter is escaped using the back solidus '\'. The main |
| 27 | character is escaped using the back slash ('\'). The main |
28 | 28 | characters you need to be careful with are |
29 | 29 | <simplelist type="inline"> |
30 | 30 | <member>$</member> |
… |
… |
|
361 | 361 | <programlisting><userinput>master_sites http://www.somesite.org/files/ \ |
362 | 362 | http://www.somemirror.org/somesite_org/files/</userinput></programlisting> |
363 | 363 | |
364 | | <tip><para>Always put the trailing forward solidus at the |
| 364 | <tip><para>Always put the trailing forward slash at the |
365 | 365 | end of a url, and remember to not include the filename |
366 | 366 | itself.</para></tip> |
367 | 367 | |
diff -u -d -b -r darwinports/doc/guide.old/xml/quick.xml darwinports/doc/guide/xml/quick.xml
old
|
new
|
|
388 | 388 | |
389 | 389 | <para>It is possible to use predefined lists of mirror sites in |
390 | 390 | your <filename>Portfile</filename>, such as SourceForge or GNU |
391 | | mirrors. A full list of mirror site types is available in |
392 | | Chapter 3, 'Fetch phase'. The straight-forward usage is:</para> |
| 391 | mirrors. The straight-forward usage is:</para> |
393 | 392 | |
394 | 393 | <programlisting>master_sites sourceforge http://distfiles.opendarwin.org/ |
395 | 394 | master_sites.mirror_subdir ${name}</programlisting> |
396 | 395 | |
| 396 | <para>In this example, <varname>sourceforge</varname> is the name |
| 397 | of the mirror site list (See Chapter 3, 'Fetch Phase' for a list |
| 398 | of all available mirror site lists), |
| 399 | <varname>http://distfiles.opendarwin.org/</varname> is a normal |
| 400 | <varname>master_sites</varname> URL, and |
| 401 | <varname>${name}</varname> (the value of the |
| 402 | <varname>name</varname> keyword in the |
| 403 | <filename>Portfile</filename>) is the subdirectory to append to |
| 404 | any mirror site lists specified.</para> |
| 405 | |
397 | 406 | <para>This will search all of the mirror sites for SourceForge and |
398 | 407 | then http://distfiles.opendarwin.org, appending |
399 | 408 | <varname>${name}</varname> to the end of each SoureForge mirror |
400 | | site in the list, for example:</para> |
| 409 | site in the list. This example will try to fetch from:</para> |
401 | 410 | |
402 | | <programlisting>http://us.dl.sourceforge.net/${name} |
403 | | ftp://us.dl.sourceforge.net/pub/sourceforge/${name}</programlisting> |
| 411 | <programlisting>http://us.dl.sourceforge.net/${name}/ |
| 412 | ftp://us.dl.sourceforge.net/pub/sourceforge/${name}/ |
| 413 | ... |
| 414 | http://distfiles.opendarwin.org/</programlisting> |
| 415 | |
| 416 | <para>Note that the value of |
| 417 | <varname>master_sites.mirror_subdir</varname> is |
| 418 | <emphasis>not</emphasis> appended to |
| 419 | <varname>http://distfiles.opendarwin.org/</varname>, this URL is |
| 420 | treated normally. In this example |
| 421 | <varname>master_sites.mirror_subdir</varname> is a required |
| 422 | key.</para> |
404 | 423 | |
405 | 424 | <para>You can also use the mirror site lists in |
406 | 425 | <varname>patch_sites</varname> and use |