mirror of https://github.com/OpenTTD/OpenTTD
(svn r13793) -Codechange: Unify the dir checking in config.lib
parent
317207ce0c
commit
7cb5bf9c12
22
config.lib
22
config.lib
|
@ -847,6 +847,16 @@ check_params() {
|
||||||
fi
|
fi
|
||||||
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" ]
|
if [ -n "$personal_dir" ]
|
||||||
then
|
then
|
||||||
log 1 "personal home directory... $personal_dir"
|
log 1 "personal home directory... $personal_dir"
|
||||||
|
@ -868,13 +878,11 @@ check_params() {
|
||||||
log 1 "installation directory... none"
|
log 1 "installation directory... none"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$with_menu_entry" = "2" ]; then
|
if [ -n "$menu_dir" ]
|
||||||
if [ "$os" = "UNIX" ] || [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ] || [ "$os" = "HPUX" ] || [ "$os" = "SUNOS" ]; then
|
then
|
||||||
with_menu_entry="1"
|
log 1 "menu item directory... $menu_dir"
|
||||||
menu_dir="share/applications"
|
else
|
||||||
else
|
log 1 "menu item directory... none"
|
||||||
with_menu_entry="0"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue