Debian Codegraph @

opencl/packaging/rocm-ocl-icd.postinst

raw
1 #!/bin/bash
2
3 set -e
4
5 INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
6
7 do_ldconfig() {
8 echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
9 }
10
11 case "$1" in
12 abort-deconfigure|abort-remove|abort-upgrade)
13 echo "$1"
14 ;;
15 configure)
16 do_ldconfig
17 ;;
18 *)
19 exit 0
20 ;;
21 esac