diff options
author | D G Turner | 2013-11-07 12:58:35 +0100 |
---|---|---|
committer | D G Turner | 2013-11-24 00:48:02 +0000 |
commit | ffce805fb2b116ef1d4f03540158d42b3fcd5e80 (patch) | |
tree | a00e679759dfb9699821d9c34ef244badab2d977 /configure | |
parent | 8b3fc996a16dccccb2de01c75d8eff65c89a969f (diff) | |
download | scummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.tar.gz scummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.tar.bz2 scummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.zip |
BUILD: Add code to maintain ordering of engines in generated files.
This is mainly "cosmetic" to keep the SCUMM engine and subengines at
the top of the various files, but probably a good idea to prevent any
subtle regressions associated with changing the order.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -4199,8 +4199,18 @@ for engine in $_engines; do fi done -# Prepare the information to be shown +# Sort engines to place our headline engine at start... +# No technical reason, just historical convention +headline_engine=scumm +_sorted_engines="${headline_engine}" for engine in $_engines; do + if test "${engine}" != "${headline_engine}" ; then + _sorted_engines="${_sorted_engines} ${engine}" + fi +done + +# Prepare the information to be shown +for engine in $_sorted_engines; do if test "`get_engine_sub $engine`" = "no" ; then # It's a main engine prepare_engine_build_strings $engine @@ -4394,7 +4404,7 @@ cat > engines/engines.mk << EOF # This file is being included by "Makefile.common" EOF -for engine in $_engines; do +for engine in $_sorted_engines; do j=`echo $engine | tr '[:lower:]' '[:upper:]'` if test "`get_engine_sub $engine`" = "no" ; then # main engine @@ -4428,7 +4438,7 @@ cat > engines/plugins_table.h << EOF // This file is being included by "base/plugins.cpp" EOF -for engine in $_engines; do +for engine in $_sorted_engines; do if test "`get_engine_sub $engine`" = "no" ; then j=`echo $engine | tr '[:lower:]' '[:upper:]'` cat >> engines/plugins_table.h << EOF |