mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-28 03:19:11 +00:00
Use 'command -v' instead of deprecated 'which'
This commit is contained in:
parent
666ecb7903
commit
ee40c18b21
2
debian/llvm-X.Y-runtime.postinst.in
vendored
2
debian/llvm-X.Y-runtime.postinst.in
vendored
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
if test "$1" = "configure"; then
|
||||
if which update-binfmts >/dev/null; then
|
||||
if command -v update-binfmts >/dev/null; then
|
||||
update-binfmts --import llvm-@LLVM_VERSION@-runtime.binfmt || true
|
||||
fi
|
||||
fi
|
||||
|
2
debian/llvm-X.Y-runtime.prerm.in
vendored
2
debian/llvm-X.Y-runtime.prerm.in
vendored
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
if test "$1" = "remove"; then
|
||||
if which update-binfmts >/dev/null; then
|
||||
if command -v update-binfmts >/dev/null; then
|
||||
update-binfmts --package llvm-@LLVM_VERSION@-runtime \
|
||||
--remove llvm-@LLVM_VERSION@-runtime.binfmt /usr/bin/lli-@LLVM_VERSION@ || true
|
||||
if test -f /var/lib/binfmts/llvm-@LLVM_VERSION@.binfmt; then
|
||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -195,7 +195,7 @@ else
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev'
|
||||
endif
|
||||
|
||||
ifeq ($(shell which llvm-spirv),)
|
||||
ifeq ($(shell command -v llvm-spirv),)
|
||||
LLVM_SPIRV_INSTALLED = no
|
||||
else
|
||||
LLVM_SPIRV_INSTALLED = yes
|
||||
|
Loading…
Reference in New Issue
Block a user