Debian Codegraph @

opencl/packaging/rocm-opencl.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
12 case "$1" in
13 abort-deconfigure|abort-remove|abort-upgrade)
14 echo "$1"
15 ;;
16 configure)
17 do_ldconfig
18 ;;
19 *)
20 exit 0
21 ;;
22 esac