Files
musrfit/cmake/post_install.sh

19 lines
577 B
Bash

#!/bin/bash
echo " >> musrfit post install script started ..."
# test if nemu-x86_64.conf does not exist
if [ ! -f "/etc/ld.so.conf.d/nemu-x86_64.conf" ]
then
echo "/usr/local/lib" >> /etc/ld.so.conf.d/nemu-x86_64.conf
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/nemu-x86_64.conf
fi
/sbin/ldconfig
#update .desktop and icons
if command -v update-desktop-database &>/dev/null; then
update-desktop-database -q /usr/share/applications || true
fi
if command -v gtk-update-icon-cache &>/dev/null; then
gtk-update-icon-cache -q -t /usr/share/icons/hicolor || true
fi