office-gobmx/sysui
Eli Schwartz cf02724e51 use portable "command -v" to detect installed programs, part 3
The "which" utility is not guaranteed to be installed either, and if it
is, its behavior is not portable either. This means that when various
programs are installed, the `which` check will report a fatal error
because the which tool did not exist and the shell returned a nonzero
status when attempting to fork+exec. If it did exist, it might not be an
implementation of `which` that returns nonzero when commands do not
exist.

The general scripting suggestion is to use the "command -v" shell
builtin; this is required to exist in all POSIX 2008 compliant shells,
and is thus guaranteed to work everywhere.

For some in-depth discussions on the topic, see:
- https://mywiki.wooledge.org/BashFAQ/081
- https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then/85250#85250

Examples of open-source shells likely to be installed as /bin/sh on
Linux, which implement the 15-year-old standard: ash, bash, busybox,
dash, ksh, mksh and zsh.

This commit updates packaging recipes.

Change-Id: I934863f6c8e05728e85278568899f581d749e0ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160664
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-01-22 14:11:47 +01:00
..
desktop use portable "command -v" to detect installed programs, part 3 2024-01-22 14:11:47 +01:00
CustomTarget_deb.mk
CustomTarget_infoplist.mk
CustomTarget_rpm.mk
CustomTarget_share.mk Only pass -I... arguments to g-ir-scanner by using pkg-config's --cflags-only-I 2023-07-23 15:10:47 +02:00
CustomTarget_solaris.mk
Makefile
Module_sysui.mk
Package_infoplist.mk
Package_osxicons.mk Resolves tdf#132398 - New hicolor/macOS icons 2022-12-06 12:54:30 +00:00
Package_share.mk
productlist.mk
README.md

Desktop System Integration

.desktop files for various Linux distros, and similar stuff for other operating systems.