0ace0b2f0d
Use GNUInstallDirs variables in post install scripts
License file installed in CMAKE_INSTALL_DOCDIR
Change-Id: I182ca292e03787a6c189e8de31d32244b65b5687
[ROCm/ROCR-Runtime commit: 707200e26e]
22 righe
351 B
Bash
Executable File
22 righe
351 B
Bash
Executable File
#!/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
|