Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

Jump to navigation Jump to search
→‎Getting download_and_compile.sh the “right way”: Remove confusing note and add '-b next' to the 'git clone' command to be 100% sure 'next' will be checked out
(→‎Advanced options: Add crossref and mention the new --override-repo option)
(→‎Getting download_and_compile.sh the “right way”: Remove confusing note and add '-b next' to the 'git clone' command to be 100% sure 'next' will be checked out)
Line 84: Line 84:
There are several ways to obtain [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh download_and_compile.sh]. The method described here makes it very easy to update the script and causes the command <code>download_and_compile.sh --version</code> to work as intended.
There are several ways to obtain [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh download_and_compile.sh]. The method described here makes it very easy to update the script and causes the command <code>download_and_compile.sh --version</code> to work as intended.


{{note|Current Status of development
As explained in [[#getting-started-with-download-and-compile-sh-notations|Notations]], we want to clone the [[FGMeta]] repository in <tt>~/flightgear/fgmeta</tt> and work with its ''next'' branch. Let's go:
 
FGMeta master is currently an old script version that is not maintained and will stop working when trying to obtain OSG sources from svn. Use the "next" branch to build the current version:
git checkout -t origin/next
}}
 
As explained in [[#getting-started-with-download-and-compile-sh-notations|Notations]], we want to clone the [[FGMeta]] repository in <tt>~/flightgear/fgmeta</tt>. Let's go:
  $ mkdir -p ~/flightgear
  $ mkdir -p ~/flightgear
  $ cd ~/flightgear
  $ cd ~/flightgear
  <nowiki>$ git clone https://git.code.sf.net/p/flightgear/fgmeta</nowiki>
  <nowiki>$ git clone -b next https://git.code.sf.net/p/flightgear/fgmeta</nowiki>
You now have a fresh FGMeta clone in <tt>~/flightgear/fgmeta</tt> and your brand new <tt>download_and_compile.sh</tt> script is located in that directory. You can already try it to see the available options:
You now have a fresh FGMeta clone in <tt>~/flightgear/fgmeta</tt> and your brand new <tt>download_and_compile.sh</tt> script is located in that directory. You can already try it to see the available options:
<pre>$ ~/flightgear/fgmeta/download_and_compile.sh --help
<pre>$ ~/flightgear/fgmeta/download_and_compile.sh --help
377

edits

Navigation menu