Switch to unified view

a/src/recollinstall b/src/recollinstall
...
...
26
if test $# != 1 ; then
26
if test $# != 1 ; then
27
   usage
27
   usage
28
fi
28
fi
29
targetdir=$1
29
targetdir=$1
30
30
31
echo "Installing to $targetdir"
31
echo "Installing binaries to $targetdir"
32
32
33
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
33
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
34
     " You need to build first."
34
     " You need to build first."
35
35
36
if test -d $targetdir/bin -a -w $targetdir/bin ; then
36
install qtgui/recoll $targetdir/bin/recoll
37
   install qtgui/recoll $targetdir/bin/recoll
37
install index/recollindex $targetdir/bin/recollindex
38
   install index/recollindex $targetdir/bin/recollindex
38
39
else
39
if test -d $HOME/.recoll ; then 
40
   echo "Not installing binary executables to $targetdir/bin which is not writable"
40
   cat <<EOF
41
   echo "Going on with personal install"
41
42
   $HOME/.recoll already exists, no modification done.
43
   You should check for new filters in the filters/ directory, and
44
   for modifications to files in the sampleconf/ directory (ie new 
45
   mime types in mimemap).
46
EOF
47
  exit 0
48
fi
42
fi
49
43
50
mkdir $HOME/.recoll || exit 1
44
me=`whoami`
51
cp filters/rcl* $HOME/.recoll
45
if test "$me" != root ; then
52
chmod a+x $HOME/.recoll/rcl*
46
  if test -d $HOME/.recoll ; then 
53
cd sampleconf
47
     cat <<EOF
54
cp  mimeconf mimemap recoll.conf $HOME/.recoll
48
     
49
     $HOME/.recoll already exists, no modification done.
50
     You should check for new filters in the filters/ directory, and
51
     for modifications to files in the sampleconf/ directory (ie new 
52
     mime types in mimemap).
53
EOF
54
     exit 0
55
  fi
55
56
57
  mkdir $HOME/.recoll || exit 1
58
  cp filters/rcl* $HOME/.recoll
59
  chmod a+x $HOME/.recoll/rcl*
60
  cd sampleconf
61
  cp mimeconf mimemap recoll.conf $HOME/.recoll
62
  chmod +w $HOME/.recoll/recoll.conf
63
  chmod +w $HOME/.recoll/mimeconf
64
65
  echo You should now take a look at $HOME/.recoll/recoll.conf
66
 
67
else
68
69
  echo "Not installing personal configuration for root user"
70
71
fi
72