mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r13793) -Codechange: Unify the dir checking in config.lib
This commit is contained in:
parent
317207ce0c
commit
7cb5bf9c12
22
config.lib
22
config.lib
@ -847,6 +847,16 @@ check_params() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$with_menu_entry" = "2" ]; then
|
||||
# add a freedesktop menu item only for some UNIX systems
|
||||
if [ "$os" = "UNIX" ] || [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ] || [ "$os" = "HPUX" ] || [ "$os" = "SUNOS" ]; then
|
||||
with_menu_entry="1"
|
||||
menu_dir="share/applications"
|
||||
else
|
||||
with_menu_entry="0"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$personal_dir" ]
|
||||
then
|
||||
log 1 "personal home directory... $personal_dir"
|
||||
@ -868,13 +878,11 @@ check_params() {
|
||||
log 1 "installation directory... none"
|
||||
fi
|
||||
|
||||
if [ "$with_menu_entry" = "2" ]; then
|
||||
if [ "$os" = "UNIX" ] || [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ] || [ "$os" = "HPUX" ] || [ "$os" = "SUNOS" ]; then
|
||||
with_menu_entry="1"
|
||||
menu_dir="share/applications"
|
||||
else
|
||||
with_menu_entry="0"
|
||||
fi
|
||||
if [ -n "$menu_dir" ]
|
||||
then
|
||||
log 1 "menu item directory... $menu_dir"
|
||||
else
|
||||
log 1 "menu item directory... none"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user