checkout.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. $title = "Getting the Code";
  3. include("../header.inc");
  4. ?>
  5. <h2>Getting WebKit</h2>
  6. <p>To download a pre-built bundle containing the latest WebKit, visit <a href="http://nightly.webkit.org/">WebKit Nightly Builds</a>.</p>
  7. <h2>Browsing the Code</h2>
  8. <p>To browse the source code online, visit <a href="https://trac.webkit.org/browser">WebKit Trac</a>.
  9. <h2>Checking Out with Subversion</h2>
  10. <p>To work with the WebKit source tree, you will need a Subversion or a Git client installed.
  11. See <a href="tools.html">Installing Developer Tools</a> for information on how
  12. to install Subversion.</p>
  13. <div class="unix-instructions">
  14. <h4>Mac OS X or Linux</h4>
  15. <ol>
  16. <li>
  17. <p>Open a shell.</p>
  18. <p>On OS X, you can use the <i>Terminal</i> App, which resides in /Applications/Utilities.</p>
  19. </li>
  20. <li>
  21. <p>You can download a snapshot of the WebKit source tree from
  22. <a href="http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2">http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2</a>.
  23. It is updated every six hours. Note the archived checkout uses an HTTP connection. We recommend running the following command to use HTTPS instead:</p>
  24. <p class="code">svn switch --relocate http://svn.webkit.org/repository/webkit/trunk https://svn.webkit.org/repository/webkit/trunk</p>
  25. <p>Type these commands to check out the WebKit source tree:</p>
  26. <p class="code">tar jxvf WebKit-SVN-source.tar.bz2<br>cd webkit</p>
  27. <div>
  28. <p>Alternatively, type this command to check out the WebKit source tree:</p>
  29. <p class="code">svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit</p>
  30. </div>
  31. </li>
  32. <li>
  33. <p>Run the <code>./Tools/Scripts/update-webkit</code> <a href="/coding/scripts.html">script</a> to update your source tree.</p>
  34. </li>
  35. </ol>
  36. </div>
  37. <div class="windows-instructions">
  38. <h4>Windows</h4>
  39. <ol>
  40. <li>
  41. <p>Open a Cygwin Shell</p>
  42. <p>Double-click the Cygwin icon on your Desktop to launch a new shell.</p>
  43. </li>
  44. <li>
  45. <p>You can download a snapshot of the WebKit source tree from
  46. <a href="http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2">http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2</a>.
  47. It is updated every six hours. Note the archived checkout uses an HTTP connection. We recommend running the following command to use HTTPS instead:</p>
  48. <p class="code">svn switch --relocate http://svn.webkit.org/repository/webkit/trunk https://svn.webkit.org/repository/webkit/trunk</p>
  49. <p>Type these commands to check out the WebKit source tree:</p>
  50. <p class="code">tar jxvf WebKit-SVN-source.tar.bz2<br>cd webkit</p>
  51. <div>
  52. <p>Alternatively, type this command to check out the WebKit source tree:</p>
  53. <p class="code">svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit</p>
  54. </div>
  55. </li>
  56. <li>
  57. <p>Install the WebKit Support Libraries</p>
  58. <p>Download the <a href="http://developer.apple.com/opensource/internet/webkit_sptlib_agree.html">WebKit Support Libraries</a> to the root of your source tree (<code>C:\cygwin\home\&lt;username&gt;\WebKit</code>).</p>
  59. <p>If the file is incorrectly named, rename it to <code>WebKitSupportLibrary.zip</code>. Do not extract its contents.</p>
  60. </li>
  61. <li>
  62. <p>Run the <code>./Tools/Scripts/update-webkit</code> <a href="/coding/scripts.html">script</a> to update your source tree.</p>
  63. <p>If you downloaded the tarball, this will bring it up to date. Windows users
  64. must always execute this command after first obtaining the code, since it will
  65. download additional libraries that are needed to build.</p>
  66. </li>
  67. </ol>
  68. </div>
  69. <p>Once you have a current tree, the next step is
  70. <a href="build.html">building WebKit</a>.</p>
  71. <h2>Checking Out with Git</h2>
  72. <p>To work with the WebKit source tree using a Git client, install a Git client with Subversion support and run the following command on your terminal:</p>
  73. <p class="code">git clone git://git.webkit.org/WebKit.git WebKit</p>
  74. <p>If you want to be able to commit changes to the Subversion repository, or just want to check out branches that aren't contained in WebKit.git, you will need track the Subversion repository. For information about this, and other aspects of using Git with WebKit, read <a href="https://trac.webkit.org/wiki/UsingGitWithWebKit">the wiki page</a>.</p>
  75. <h2>Keeping up to Date</h2>
  76. <p>At any time, you can rerun the <code>update-webkit</code> script to update
  77. your source tree.</p>
  78. <?php
  79. include("../footer.inc");
  80. ?>