#! /bin/sh # Installing a Geomorph user, part 2: defaults for the options file VERSION=0.40 GEORC=$HOME/.geomorph/geomorphrc if [ -f $GEORC ] then exit fi echo "[files]" > $GEORC; echo "def_dir = geomorph" >> $GEORC; echo "hf_dir = $HOME/.geomorph" >> $GEORC; echo "pov_dir = $HOME/.geomorph" >> $GEORC; echo "doc_dir = /usr/local/share/geomorph/doc/index.html " >> $GEORC; # Look for a HTML reader # (a simple process which could be fooled in some cases - # the file type should be tested in the future, to know if it's executable) if type epiphany 1> /dev/null; then echo "doc_reader = epiphany" >> $GEORC; elif type firefox 1> /dev/null; then echo "doc_reader = firefox" >> $GEORC; elif type mozilla 1> /dev/null; then echo "doc_reader = mozilla" >> $GEORC; elif type konqueror 1> /dev/null; then echo "doc_reader = konqueror" >> $GEORC; elif type galeon 1> /dev/null; then echo "doc_reader = galeon" >> $GEORC; else echo "doc_reader = " >> $GEORC; fi echo " " >> $GEORC; echo "[interface]" >> $GEORC; echo "pad = 6" >> $GEORC; echo "hf_size_in_screen_percent = 40 " >> $GEORC; echo "hf_size_in_pixels = 512" >> $GEORC; echo "doc_display_size = 512" >> $GEORC; echo "max_pen_preview = 64 " >> $GEORC; echo "filter_preview_size = 32 " >> $GEORC; echo "noise_preview_size = 64 " >> $GEORC; echo "main_bar_x = 3 " >> $GEORC; echo "main_bar_y = 3 " >> $GEORC; echo "creation_window_x = 3 " >> $GEORC; echo "creation_window_y = 15 " >> $GEORC; echo "tools_window_x = 3 " >> $GEORC; echo "tools_window_y = 15 " >> $GEORC; echo "display_doc_offset = 4 " >> $GEORC; echo "[application]" >> $GEORC; echo "max_history = 5 " >> $GEORC; echo "default_seed = 0x6b8b4567" >> $GEORC; echo " " >> $GEORC; echo "[rendering]" >> $GEORC; # Look for povray if type x-povray 1> /dev/null; then echo "renderer = x-povray" >> $GEORC; elif type povray35 1> /dev/null; then echo "renderer = povray35" >> $GEORC; elif type povray36 1> /dev/null; then echo "renderer = povray36" >> $GEORC; else echo "renderer = povray" >> $GEORC; fi echo "render_width = 480 " >> $GEORC; echo "render_height = 360" >> $GEORC; echo "scene = $HOME/.geomorph/simple_terrain.pov " >> $GEORC; echo "hf_output_for_rendering = test.png " >> $GEORC; echo "output_prefix = _ " >> $GEORC; echo "other_render_options = +P +D -F +L$HOME/.geomorph" >> $GEORC; echo " " >> $GEORC; if type /usr/local/share/geomorph/$VERSION/v0_30_new_sections > /dev/null 2>&1 ; then /usr/local/share/geomorph/$VERSION/v0_30_new_sections >> $GEORC elif type ./v0_30_new_sections > /dev/null ; then ./v0_30_new_sections >> $GEORC fi