*** empty log message ***
This commit is contained in:
parent
bc7b000790
commit
2fb51a47b4
@ -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 <dir>, 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 <<EOF
|
|
||||||
|
|
||||||
$HOME/.recoll already exists, no modification done.
|
|
||||||
You should check for new filters or updated files in
|
|
||||||
${PREFIX}/share/recoll/examples.
|
|
||||||
EOF
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir $HOME/.recoll || exit 1
|
|
||||||
cp ${PREFIX}/share/recoll/examples/* $HOME/.recoll
|
|
||||||
chmod a+x $HOME/.recoll/rcl*
|
|
||||||
chmod +w $HOME/.recoll/recoll.conf
|
|
||||||
chmod +w $HOME/.recoll/mimeconf
|
|
||||||
|
|
||||||
echo Copied configuration files and filters to $HOME/.recoll/
|
|
||||||
echo You should now take a look at $HOME/.recoll/recoll.conf
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
# @(#$Id: recoll.conf,v 1.10 2005-11-21 16:05:07 dockes Exp $ (C) 2004 J.F.Dockes
|
|
||||||
|
|
||||||
# Recoll default configuration file. This should be copied to
|
|
||||||
# ~/.recoll/recoll.conf
|
|
||||||
|
|
||||||
# Space-separated list of directories to index. Next line indexes $HOME
|
|
||||||
topdirs = ~
|
|
||||||
|
|
||||||
# Wildcard expressions for names of files and directories that we should
|
|
||||||
# ignore:
|
|
||||||
skippedNames = *~ #* .* bin CVS Cache caughtspam tmp
|
|
||||||
|
|
||||||
# Debug messages
|
|
||||||
loglevel = 4
|
|
||||||
logfilename = stderr
|
|
||||||
|
|
||||||
# Languages for which to build stemming databases at the end of
|
|
||||||
# indexing. Stemmer names can be found on the xapian site
|
|
||||||
indexstemminglanguages = english french
|
|
||||||
|
|
||||||
# Use stemming of query terms or not (ie: expand search for floors to
|
|
||||||
# floor, flooring, etc... )
|
|
||||||
querystemming = 1
|
|
||||||
querystemminglanguage = english
|
|
||||||
|
|
||||||
# Name of file suffix to mime-type map file.
|
|
||||||
mimemapfile = mimemap
|
|
||||||
# Name of mime-type to filter type/name map file.
|
|
||||||
mimeconffile = mimeconf
|
|
||||||
|
|
||||||
# Decide if we do show icons in the result list. This looks a bit more
|
|
||||||
# beaglish, but I'm not quite sure it's useful. If you wish to have them,
|
|
||||||
# you will have to copy the pngs from the distribution to wherever you want
|
|
||||||
# to store them (the associations are decided in mimeconf)
|
|
||||||
showicons = 1
|
|
||||||
iconsdir = /usr/local/share/recoll/images
|
|
||||||
|
|
||||||
# Where to store the database.
|
|
||||||
dbdir = ~/.recoll/xapiandb
|
|
||||||
|
|
||||||
# Default character set. Values found inside files, ie content tag in html
|
|
||||||
# documents, will override this. It can be specified per directory (see
|
|
||||||
# below). Used when converting to utf-8 (internal storage format).
|
|
||||||
defaultcharset = iso-8859-1
|
|
||||||
defaultlanguage = english
|
|
||||||
|
|
||||||
# Guessing charsets usually does not work well
|
|
||||||
guesscharset = 0
|
|
||||||
|
|
||||||
# Should we use the system's 'file -i' command as a final step in file type
|
|
||||||
# identification ? This may be useful, but will usually cause the
|
|
||||||
# indexation of many bogus 'text' files
|
|
||||||
usesystemfilecommand = 1
|
|
||||||
|
|
||||||
# You could specify different parameters for a subdirectory like this.
|
|
||||||
#[~/englishdocs/plain]
|
|
||||||
#defaultcharset = iso-8859-2
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user