summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2008-10-16 11:12:18 +0000
committertruebrain <truebrain@openttd.org>2008-10-16 11:12:18 +0000
commit570c998c60f1fdf8ed58231beb59b9bf74c2d8a7 (patch)
treeb1e521d6dd624fe4c477cced30d2ef443b08c3b7 /config.lib
parent386439fab58b8410e59fe0518356cf7131a114be (diff)
downloadopenttd-570c998c60f1fdf8ed58231beb59b9bf74c2d8a7.tar.xz
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index c60de2432..78d7301de 100644
--- a/config.lib
+++ b/config.lib
@@ -37,6 +37,7 @@ set_default() {
man_dir="1"
menu_dir="1"
menu_group="Game;"
+ binary_name="openttd"
enable_debug="0"
enable_desync_debug="0"
enable_profiling="0"
@@ -100,6 +101,7 @@ set_default() {
shared_dir
install_dir
menu_group
+ binary_name
enable_debug
enable_desync_debug
enable_profiling
@@ -213,6 +215,9 @@ detect_params() {
--menu-dir=*) menu_dir="$optarg";;
--without-menu-entry) menu_dir="";;
+ --binary-name) prevp_p="binary_name";;
+ --binary-name=*) binary_name="$optarg";;
+
--man-dir) prevp_p="man_dir";;
--man-dir=*) man_dir="$optarg";;
@@ -2311,6 +2316,7 @@ make_sed() {
s~!!PERSONAL_DIR!!~$personal_dir~g;
s~!!SHARED_DIR!!~$shared_dir~g;
s~!!INSTALL_DIR!!~$install_dir~g;
+ s~!!BINARY_NAME!!~$binary_name~g;
s~!!STRGEN!!~$STRGEN~g;
s~!!ENDIAN_CHECK!!~$ENDIAN_CHECK~g;
s~!!ENDIAN_FORCE!!~$endian~g;
@@ -2521,6 +2527,8 @@ showhelp() {
echo " [os-dependent default]"
echo " --install-dir=dir specifies the root to install to."
echo " Useful to install into jails [/]"
+ echo " --binary-name the name used for the binary, icons,"
+ echo " desktop file, etc. when installing [openttd]"
echo ""
echo "Features and packages:"
echo " --enable-debug[=LVL] enable debug-mode (LVL=[0123], 0 is release)"