Switch to unified view

a/src/recollinstall.in b/src/recollinstall.in
...
...
17
   PREFIX=$1
17
   PREFIX=$1
18
else
18
else
19
   usage
19
   usage
20
fi
20
fi
21
21
22
echo "Installing to $PREFIX"
22
23
test -n "$bindir" || bindir=${PREFIX}/bin
23
test -n "$bindir" || bindir=${PREFIX}/bin
24
test -n "$datadir" || datadir=${PREFIX}/share
24
test -n "$datadir" || datadir=${PREFIX}/share
25
if test -z "$mandir" ; then 
25
if test -z "$mandir" ; then 
26
   if test -d ${PREFIX}/man ; then
26
   if test -d ${PREFIX}/man ; then
27
      mandir=${PREFIX}/man
27
      mandir=${PREFIX}/man
28
   else
28
   else
29
      mandir=${datadir}/man
29
      mandir=${datadir}/man
30
   fi
30
   fi
31
fi
31
fi
32
32
33
if test -n "$DESTDIR" ; then
34
   PREFIX=$DESTDIR/$PREFIX
35
   bindir=$DESTDIR/$bindir
36
   datadir=$DESTDIR/$datadir
37
   mandir=$DESTDIR/$mandir
38
fi
39
40
echo "Installing to $PREFIX"
41
33
INSTALL=${INSTALL:="install -c"}
42
INSTALL=${INSTALL:="install -c -v"}
34
STRIP=${STRIP:=strip}
43
STRIP=${STRIP:=strip}
35
44
36
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
45
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
37
     " You need to build first (type 'make')."
46
     " You need to build first (type 'make')."
38
47