cavis/libnd4j/cmake/postinst

13 lines
296 B
Bash
Executable File

#!/bin/sh
if [ -f "/usr/local/lib/libnd4jcpu.so" ]; then
cat >/etc/ld.so.conf.d/libnd4jcpu.conf <<EOF
/usr/local/lib/libnd4jcpu.so
EOF
else if [ -f "/usr/local/lib/libnd4jcuda.so" ]; then
cat >/etc/ld.so.conf.d/libnd4jcuda.conf <<EOF
/usr/local/lib/libnd4jcuda.so
EOF
fi
fi
ldconfig