Files
Sourcetrail/setup/Linux/install.sh
T
Andreas Stallinger 23fbe6c384 script: move forced test to precommit hook
NOTE: run setup.sh script to update the hooks
* commit message after building and testing
* pushing tags does not run builds and tests
2016-04-14 11:46:53 +02:00

22 lines
729 B
Bash
Executable File

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
MY_PATH=$SCRIPT_DIR/..
cat ${MY_PATH}/EULA.txt
echo "Agree to the EULA"
printf 'enter [y/n] '
read ans
case ${ans:=y} in [yY]*) ;; *) exit ;; esac
echo "Run this script as root"
cp -rf $MY_PATH/ /opt/coati/ > /dev/null
cp $MY_PATH/setup/coati-mime.xml /usr/share/mime/packages > /dev/null
cp $MY_PATH/setup/coati.desktop /usr/share/applications/ > /dev/null
cp $MY_PATH/data/gui/icon/logo_1024_1024.png /usr/share/icons/coati.png > /dev/null
cp $MY_PATH/data/gui/icon/project_256_256.png /usr/share/icons/project-coati.png > /dev/null
update-mime-database /usr/share/mime > /dev/null
update-desktop-database > /dev/null
ln -f -s /opt/coati/Coati.sh /usr/bin/coati > /dev/null