1#! /bin/sh 2 3# Basic script for installing a Geomorph user 4# Should be executed under the user account 5# Should be executed before the first launch of Geomorph, 6# otherwise Geomorph will try to execute the parts 7# automatically if the directory or the RC file are not found 8 9VERSION=0.60 10 11if [ -d $HOME/.geomorph ] 12then 13 /usr/local/share/geomorph/$VERSION/install-step1-dir 14 exit 15fi 16 17/usr/local/share/geomorph/$VERSION/install-step1-dir 18/usr/local/share/geomorph/$VERSION/install-step2-rcfile 19/usr/local/share/geomorph/$VERSION/install-step3-menu 20/usr/local/share/geomorph/$VERSION/install-step4-desktop 21 22# Check Pov-Ray 23 24if [ ! `which povray` ] 25then 26 echo "********** WARNING **********" 27 echo "A 'povray' executable was not found." 28 echo "POV-Ray was not installed, or the executable has another name." 29 echo "If you want to render the Geomorph scenes with the provided scripts," 30 echo "please be sure that the package is installed globally" 31 echo "and for you as a user." 32fi 33 34 35if [ ! -d $HOME/.povray ] 36then 37 echo "No .povray directory was found in your home directory!" 38 echo "Apparently POV-Ray is not installed for you." 39 echo "To execute POV-Ray from Geomorph, please be sure" 40 echo "that POV-Ray can find a povray.conf file," 41 echo "and that this file contains the "$HOME" directory" 42 echo "in the [Permitted Paths] section." 43 echo "This file can be created by using the install script" 44 echo "from the original POV-Ray package, with the option user." 45else 46 47 if [ ! -f $HOME/.povray/3.6/povray.conf ] 48 then 49 echo "Assuming you are using POV-Ray 3.6, no povray.conf file" 50 echo "was found in "$HOME"/.povray/3.6/ " 51 echo "To execute POV-Ray from Geomorph, please be sure" 52 echo "that POV-Ray can find a povray.conf file," 53 echo "and that this file contains the "$HOME" directory" 54 echo "in the [Permitted Paths] section." 55 echo "This file can be created by using the install script" 56 echo "from the original POV-Ray package, with the option user." 57 fi 58fi 59 60