From 2fb51a47b480f7759dbdc78ae9e078c19077a316 Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 23 Nov 2005 13:12:06 +0000 Subject: [PATCH] *** empty log message *** --- src/recollinstall | 84 -------------------------------------- src/sampleconf/recoll.conf | 58 -------------------------- 2 files changed, 142 deletions(-) delete mode 100755 src/recollinstall delete mode 100644 src/sampleconf/recoll.conf diff --git a/src/recollinstall b/src/recollinstall deleted file mode 100755 index 438fd6da..00000000 --- a/src/recollinstall +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh - -# Install recoll files. This has 2 modes, for installing the binaries or -# the personal configuration files - -fatal() -{ - echo $* - exit 1 -} -usage() -{ - echo 'Usage (common files): recollinstall , ie: recollinstall /usr/local' - fatal 'Usage (personal config): recollinstall' -} - -INSTALL=${INSTALL:=install} - -if test $# = 1 ; then - # Install commands and example config to target directory - PREFIX=$1 - - echo "Installing to $PREFIX" - - test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \ - " You need to build first (type 'make')." - - for d in ${PREFIX} \ - ${PREFIX}/bin \ - ${PREFIX}/share \ - ${PREFIX}/share/recoll \ - ${PREFIX}/share/recoll/examples \ - ${PREFIX}/share/recoll/images - do - test -d $d || mkdir $d || exit 1 - done - - - ${INSTALL} qtgui/recoll index/recollindex recollinstall $PREFIX/bin \ - || exit 1 - - ${INSTALL} filters/rcl* ${PREFIX}/share/recoll/examples/ || exit 1 - - ${INSTALL} sampleconf/recoll.conf sampleconf/mimeconf sampleconf/mimemap \ - ${PREFIX}/share/recoll/examples/ || exit 1 - - ${INSTALL} qtgui/mtpics/*.png ${PREFIX}/share/recoll/images || exit 1 - - exit 0 - -else - - # Install configuration files to home directory - PREFIX=${PREFIX:=/usr/local} - - me=`whoami` - if test "$me" = root ; then - fatal "Cowardly refusing to install personal config in root's" \ - "home directory" - fi - if test ! -d ${PREFIX}/share/recoll/examples ; then - fatal "Global install should be performed first" - fi - - if test -d $HOME/.recoll ; then - cat <