707200e26e
Use GNUInstallDirs variables in post install scripts License file installed in CMAKE_INSTALL_DOCDIR Change-Id: I182ca292e03787a6c189e8de31d32244b65b5687
22 linhas
351 B
Bash
Arquivo Executável
22 linhas
351 B
Bash
Arquivo Executável
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
rm_ldconfig() {
|
|
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
( remove | upgrade )
|
|
rm_ldconfig
|
|
;;
|
|
( purge )
|
|
;;
|
|
( * )
|
|
exit 0
|
|
;;
|
|
esac
|