Switch to unified view

a/src/recollinstall b/src/recollinstall
...
...
56
  me=`whoami`
56
  me=`whoami`
57
  if test "$me" = root ; then
57
  if test "$me" = root ; then
58
    fatal "Cowardly refusing to install personal config in root's" \
58
    fatal "Cowardly refusing to install personal config in root's" \
59
        "home directory"
59
        "home directory"
60
  fi
60
  fi
61
  if test ! -d ${PREFIX}/share/examples/recoll ; then
61
  if test ! -d ${PREFIX}/share/recoll/examples ; then
62
     fatal "Global install should be performed first"
62
     fatal "Global install should be performed first"
63
  fi
63
  fi
64
64
65
  if test -d $HOME/.recoll ; then 
65
  if test -d $HOME/.recoll ; then 
66
    cat <<EOF
66
    cat <<EOF
67
     
67
     
68
     $HOME/.recoll already exists, no modification done.
68
     $HOME/.recoll already exists, no modification done.
69
     You should check for new filters or updated files in 
69
     You should check for new filters or updated files in 
70
     ${PREFIX}/share/examples/recoll.
70
     ${PREFIX}/share/recoll/examples.
71
EOF
71
EOF
72
     exit 0
72
     exit 0
73
  fi
73
  fi
74
74
75
  mkdir $HOME/.recoll || exit 1
75
  mkdir $HOME/.recoll || exit 1
76
  cp ${PREFIX}/share/examples/recoll/* $HOME/.recoll
76
  cp ${PREFIX}/share/recoll/examples/* $HOME/.recoll
77
  chmod a+x $HOME/.recoll/rcl*
77
  chmod a+x $HOME/.recoll/rcl*
78
  chmod +w $HOME/.recoll/recoll.conf
78
  chmod +w $HOME/.recoll/recoll.conf
79
  chmod +w $HOME/.recoll/mimeconf
79
  chmod +w $HOME/.recoll/mimeconf
80
80
81
  echo Copied configuration files and filters to $HOME/.recoll/
81
  echo Copied configuration files and filters to $HOME/.recoll/