diff options
Diffstat (limited to 'files/ja/mozilla/projects/spidermonkey/getting_spidermonkey_source_code/index.html')
-rw-r--r-- | files/ja/mozilla/projects/spidermonkey/getting_spidermonkey_source_code/index.html | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/files/ja/mozilla/projects/spidermonkey/getting_spidermonkey_source_code/index.html b/files/ja/mozilla/projects/spidermonkey/getting_spidermonkey_source_code/index.html new file mode 100644 index 0000000000..3296d837dc --- /dev/null +++ b/files/ja/mozilla/projects/spidermonkey/getting_spidermonkey_source_code/index.html @@ -0,0 +1,90 @@ +--- +title: SpiderMonkeyソースコードの取得 +slug: Mozilla/Projects/SpiderMonkey/Getting_SpiderMonkey_source_code +tags: + - Guide + - SpiderMonkey +translation_of: Mozilla/Projects/SpiderMonkey/Getting_SpiderMonkey_source_code +--- +<div>{{SpiderMonkeySidebar}}</div> + +<p>SpiderMonkey のソースコードは gzip 形式でも直接 Mercurial リポジトリからも入手できます。</p> + +<h2 id="gzip_で圧縮された_SpiderMonkey_のソースコードのダウンロード">gzip で圧縮された SpiderMonkey のソースコードのダウンロード</h2> + +<p>gzip で圧縮された SpiderMonkey のソースコードを次の URL からダウンロードできます:</p> + +<pre><span class="plain"><a href="http://ftp.mozilla.org/pub/mozilla.org/js/" title="http://ftp.mozilla.org/pub/mozilla.org/js/">http://ftp.mozilla.org/pub/mozilla.org/js/</a></span> +</pre> + +<p>コマンドラインから SpiderMonkey ソースコード ver24.2 をダウンロードして展開する例です:</p> + +<pre>mkdir mozilla +cd mozilla +wget <a href="http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2">http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2</a> +tar xjf mozjs-24.2.0.tar.bz2 +</pre> + +<p>These commands should work on most platforms including Windows, as long as on Windows you are using the <a href="/En/Developer_Guide/Build_Instructions/Windows_Prerequisites#mozillabuild" title="https://developer.mozilla.org/en/Windows_Build_Prerequisites#mozillabuild">MozillaBuild</a> bash shell.</p> + +<h2 id="Getting_the_latest_SpiderMonkey_source_code" name="Getting_the_latest_SpiderMonkey_source_code">Mercurial から最新の SpiderMonkey ソースコードを入手する</h2> + +<p>The <a href="/en/Mercurial" title="en/Mercurial">Mercurial</a> repository at <a class="external" href="http://hg.mozilla.org/mozilla-central/" title="http://hg.mozilla.org/mozilla-central/">http://hg.mozilla.org/mozilla-central/</a> hosts the latest SpiderMonkey sources. Mercurial is also known as hg.</p> + +<p>The following command line downloads the entire Mozilla repository, including the full change history and a lot of Gecko and Firefox source code that isn't part of SpiderMonkey. It also changes to the SpiderMonkey directory (js/src).</p> + +<pre class="eval">hg clone <span class="nowiki">http://hg.mozilla.org/mozilla-central/</span> +cd js/src +</pre> + +<p>To avoid getting the full change history, click the <code>zip</code> or <code>gz</code> links at <a class="external" href="http://hg.mozilla.org/index.cgi/mozilla-central/file/tip" title="http://hg.mozilla.org/index.cgi/mozilla-central/file/tip">http://hg.mozilla.org/index.cgi/mozilla-central/file/tip</a>. This fetches a snapshot of the current Mozilla tree.</p> + +<p>If you have problems with the instructions above, you can read the full details of using Mercurial to get Mozilla code <a href="https://developer.mozilla.org/en-US/docs/Developer_Guide/Source_Code/Mercurial" title="https://developer.mozilla.org/en-US/docs/Developer_Guide/Source_Code/Mercurial">here</a>. That page also contains links to several bundles, which can be useful if you have a poor network connection.</p> + +<h2 id="Getting_the_latest_SpiderMonkey_source_code" name="Getting_the_latest_SpiderMonkey_source_code">Git で最新の SpiderMonkey のソースコードを取得する</h2> + +<p>The following command line downloads the entire Mozilla repository, including the full change history and a lot of Gecko and Firefox source code that isn't part of SpiderMonkey. It also changes to the SpiderMonkey directory (js/src).</p> + +<pre class="eval">git clone https://github.com/mozilla/gecko-dev.git +cd gecko-dev/js/src +</pre> + +<p>If you want a faster (about 5 times as of January 2015) download, try doing a shallow clone (no version control history).</p> + +<pre class="eval">git clone --depth 1 https://github.com/mozilla/gecko-dev.git +</pre> + +<p>If you have any problems check the <a href="https://wiki.mozilla.org/Github" title="https://wiki.mozilla.org/Github">https://wiki.mozilla.org/Github</a> page.</p> + +<h2 id="Getting_older_SpiderMonkey_sources_from_CVS" name="Getting_older_SpiderMonkey_sources_from_CVS">CVS から古い SpiderMonkey ソースを入手する</h2> + +<div class="note"><strong>Note:</strong> You will need to explicitly fetch the JavaScript shell sources even if you currently build another Mozilla project, as there are files specific to the shell that are not normally found in a Mozilla source tree.</div> + +<p>Just like when you're fetching any other Mozilla project from CVS, you need to log into the CVS server first. To do this, <code>cd</code> into the base directory you'd like to check out the code into, then enter the following command at your command line:</p> + +<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login +</pre> + +<p>When prompted, enter the password <code>anonymous</code>.</p> + +<p>Once you've logged in, <code>cd</code> into the root of your CVS tree and enter the following command:</p> + +<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l mozilla/js/src mozilla/js/src/config mozilla/js/src/editline mozilla/js/src/fdlibm +</pre> + +<p>This checks out all the files needed in order to build the JavaScript shell.</p> + +<p>If you also want the regression tests, add this command:</p> + +<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/js/tests +</pre> + +<h2 id="Getting_older_branch_versions_of_SpiderMonkey" name="Getting_older_branch_versions_of_SpiderMonkey">SpiderMonkey の古いブランチバージョンを入手する</h2> + +<p>If you want to experiment with a specific branch's version of SpiderMonkey, you need to check out js/src from branch but check out <code>editline</code> and <code>config</code> from trunk:</p> + +<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l -r <em><var>BRANCH_NAME</var></em> mozilla/js/src mozilla/js/src/fdlibm +cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l mozilla/js/src/config mozilla/js/src/editline +</pre> + +<p>Change <code><em>BRANCH_NAME</em></code> to the name of the branch you want to check out. You can use a JavaScript branch name (e.g. <code>JS_1_7_ALPHA_BRANCH</code>) or a Mozilla branch name (e.g. <code>MOZILLA_1_8_BRANCH</code>).</p> |