1#! /bin/sh 2 3# Installing a Geomorph user, part 2: defaults for the options file 4 5VERSION=0.60 6 7GEORC=$HOME/.geomorph/geomorphrc 8 9if [ -f $GEORC ] 10then exit 11fi 12 13echo "[files]" > $GEORC; 14echo "def_dir = $HOME/.geomorph" >> $GEORC; 15echo "hf_dir = $HOME/.geomorph" >> $GEORC; 16echo "pov_dir = $HOME/.geomorph" >> $GEORC; 17echo "tmp_dir = $HOME/.geomorph/tmp" >> $GEORC; 18echo "doc_dir = /usr/local/share/geomorph/doc/index.html " >> $GEORC; 19 20# Look for a HTML reader 21 22if [ `which firefox` ]; then 23 echo "doc_reader = firefox" >> $GEORC; 24elif [ `which epiphany` ]; then 25 echo "doc_reader = epiphany" >> $GEORC; 26elif [ `which mozilla` ]; then 27 echo "doc_reader = mozilla" >> $GEORC; 28elif [ `which konqueror` ]; then 29 echo "doc_reader = konqueror" >> $GEORC; 30elif [ `which seamonkey` ]; then 31 echo "doc_reader = seamonkey" >> $GEORC; 32elif [ `which galeon` ]; then 33 echo "doc_reader = galeon" >> $GEORC; 34else 35 echo "doc_reader = " >> $GEORC; 36fi 37echo " " >> $GEORC; 38echo "[interface]" >> $GEORC; 39echo "interface_style = Integrated" >> $GEORC; 40echo "menu_in_doc_window = TRUE" >> $GEORC; 41echo "icons_in_doc_window = TRUE" >> $GEORC; 42echo "pad = 6" >> $GEORC; 43echo "hf_size_in_screen_percent = 40 " >> $GEORC; 44echo "hf_size_in_pixels = 512" >> $GEORC; 45echo "doc_display_size = 512" >> $GEORC; 46echo "max_pen_preview = 64 " >> $GEORC; 47echo "filter_preview_size = 32 " >> $GEORC; 48echo "noise_preview_size = 64 " >> $GEORC; 49echo "main_bar_x = 3 " >> $GEORC; 50echo "main_bar_y = 3 " >> $GEORC; 51echo "creation_window_x = 3 " >> $GEORC; 52echo "creation_window_y = 15 " >> $GEORC; 53echo "tools_window_x = 3 " >> $GEORC; 54echo "tools_window_y = 15 " >> $GEORC; 55echo "display_doc_offset = 4 " >> $GEORC; 56 57echo "[application]" >> $GEORC; 58echo "max_history = 5 " >> $GEORC; 59echo "default_terrain = Subdiv2 " >> $GEORC; 60echo "default_seed = 0x6b8b4567" >> $GEORC; 61 62echo " " >> $GEORC; 63 64echo "[rendering]" >> $GEORC; 65# Look for povray 66if [ `which povray` ]; then 67 echo "renderer = povray" >> $GEORC; 68elif [ `which povray36` ]; then 69 echo "renderer = povray36" >> $GEORC; 70elif [ `which povray35` ]; then 71 echo "renderer = povray35" >> $GEORC; 72elif [ `which x-povray` ]; then 73 echo "renderer = x-povray" >> $GEORC; 74else 75 echo "renderer = not-found" >> $GEORC; 76fi 77echo "render_width = 640 " >> $GEORC; 78echo "render_height = 480" >> $GEORC; 79echo "scene = $HOME/.geomorph/simple_terrain.pov " >> $GEORC; 80echo "hf_output_for_rendering = test.png " >> $GEORC; 81echo "output_prefix = _ " >> $GEORC; 82echo "other_render_options = +P +D -F +L$HOME/.geomorph" >> $GEORC; 83 84echo " " >> $GEORC; 85 86if type /usr/local/share/geomorph/$VERSION/v0_30_new_sections > /dev/null 2>&1 ; then 87 /usr/local/share/geomorph/$VERSION/v0_30_new_sections >> $GEORC 88elif type ./v0_30_new_sections > /dev/null ; then 89 ./v0_30_new_sections >> $GEORC 90fi 91