CPack post (un)install
add post (un)install scripts to musrfit cpack. Currently for rpm only. Furthermore a minimal required root version is added. Will need to see if this is sufficient or if more detailed work needs to be added.
This commit is contained in:
14
cmake/post_install.sh
Normal file
14
cmake/post_install.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
|
||||
echo ">> musrfit post install script done."
|
||||
|
Reference in New Issue
Block a user