1. Added the output of a rebuild command to facilitate
rerunning with The same parameters.
usage: chmod +x rebuild
./rebuild
2. Removed FGCOMGUI from the all build due to its failure to build
at least on Ubuntu 13.04
3. Added options
-B branch
-R revision
usage: -B master -R HEAD
-B next -R HEAD
-B 2.10.0 -R HEAD
-B 2.12.0 -R HEAD
other entries are possibl -R defaults to HEAD, but can also be a commit #
or a tag name
4. OSG Version option -G
usage:
-G 3.0.1 (default)
-G 3.1.9
-G 3.1.9d (debug build for osg - untested)
5. Stop after building one module
This was added to facilitate testing.
usage: -z
6. Enable Flightgear 2.10.0 as stable
usage: -s
7. Add optional build for OPENRADAR
usage:
./download_and_compile.sh OPENRADAR
untested
8. Echo compile bash variable values to terminal and logfile
9. add patches for fltk libraries on Ubuntu 13.04
10. Sets the window title at each step
11. Initial support for keeping multiple versions of fgdata
To do this, create directories in the parent of where you are building:
fgdata_2.10.0
fgdata_2.12.0
fgdata_2.99.9
move a copy of ANY fgdata git clone into all three
the next initial build of a given version will set the corresponding
fgdata to the right version.
to use these, set up a symbolic link to fgdata_x from install/fgfs/fgdata
12. Added output to an additonal log: download_and_compile.log
The log contains only a record of starting each component build
and the end of the build.
Fun fact: OSG builds in about 4 minutes using -j 9
on an i7 4770k with 16gb memory
../download_and_compile.sh -xvp n -j 9 -B 2.12.0 ALL
cat download_and_compile.log
../download_and_compile.sh -xvp n -j 9 -B 2.12.0 ALL
started building in /home/pac1/work/fg/test-gits/team-master/2.12.0
at Tue Aug 27 22:43:17 EDT 2013
finished at Tue Aug 27 22:56:04 EDT 2013
Version 1.9.12-pre5 5th pre-release version of 1.9.12
function write_log() added.
write_log writes summary information to sysout and a summary log file
the function is added as a preview of changes to the logging for the script
function SET_WINDOW_TITLE()
changes the window title to indicate what is being built.
function check_build()
writes to the summary log a list of what was found as executables after a build.
outputs a rebuild command
the rebuild command can be used to re-execute the same build without entry of options or parameters.
removes fgcomgui from the list of modules built when ALL is specified
STOP_AFTER_ONE_MODULE
Adds options z, B, R and G
option z will set this so that only one module will be built, and then the script
will immediately stop. This is useful during testing of the script.
Option B allows the build of a specific branch. Without the R option it will build the head of the branch.
option R allows the build of a specific revision or commit.
Option G allows selection of a specific version of OpenSceneGraph.
This version introduces the use of a bash associative array to select branch and version for building.
patches allow building with fltk under Ubuntu 13.04
Open radar has been added
Apparently the keychain re-locks fairly rapidly, so run the unlock script
right before running the packaging script. This is non-portable to another Mac slave, but will do for now.