doc
This commit is contained in:
parent
84abb8ac04
commit
4ffdbc43f2
@ -5398,6 +5398,41 @@ alink="#0000FF">
|
||||
necessary in a different location, the index must be
|
||||
reset.</p>
|
||||
</div>
|
||||
<p>To make a long story short, here follows a script to
|
||||
create a <span class="application">Recoll</span>
|
||||
configuration and index under a given directory (given as
|
||||
single parameter). The resulting data set (files + recoll
|
||||
directory) can later to be moved to a CDROM or thumb drive.
|
||||
Longer explanations come after the script.</p>
|
||||
<pre class="programlisting">#!/bin/sh
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*;exit 1
|
||||
}
|
||||
usage()
|
||||
{
|
||||
fatal "Usage: init-recoll-volume.sh <top-directory>"
|
||||
}
|
||||
|
||||
test $# = 1 || usage
|
||||
topdir=$1
|
||||
test -d "$topdir" || fatal $topdir should be a directory
|
||||
|
||||
confdir="$topdir/recoll-config"
|
||||
test ! -d "$confdir" || fatal $confdir should not exist
|
||||
|
||||
mkdir "$confdir"
|
||||
cd "$topdir"
|
||||
topdir=`pwd`
|
||||
cd "$confdir"
|
||||
confdir=`pwd`
|
||||
|
||||
(echo topdirs = '"'$topdir'"'; \
|
||||
echo orgidxconfdir = $topdir/recoll-config) > "$confdir/recoll.conf"
|
||||
|
||||
recollindex -c "$confdir"
|
||||
</pre>
|
||||
<p>The examples below will assume that you have a dataset
|
||||
under <code class="filename">/home/me/mydata/</code>, with
|
||||
the index configuration and data stored inside <code class=
|
||||
|
||||
@ -4176,6 +4176,42 @@
|
||||
updated in its original location. If an update is necessary in a
|
||||
different location, the index must be reset.</para></note>
|
||||
|
||||
<para>To make a long story short, here follows a script to create a
|
||||
&RCL; configuration and index under a given directory (given as single
|
||||
parameter). The resulting data set (files + recoll directory) can later
|
||||
to be moved to a CDROM or thumb drive. Longer explanations come after
|
||||
the script.</para>
|
||||
|
||||
<programlisting>#!/bin/sh
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*;exit 1
|
||||
}
|
||||
usage()
|
||||
{
|
||||
fatal "Usage: init-recoll-volume.sh <top-directory>"
|
||||
}
|
||||
|
||||
test $# = 1 || usage
|
||||
topdir=$1
|
||||
test -d "$topdir" || fatal $topdir should be a directory
|
||||
|
||||
confdir="$topdir/recoll-config"
|
||||
test ! -d "$confdir" || fatal $confdir should not exist
|
||||
|
||||
mkdir "$confdir"
|
||||
cd "$topdir"
|
||||
topdir=`pwd`
|
||||
cd "$confdir"
|
||||
confdir=`pwd`
|
||||
|
||||
(echo topdirs = '"'$topdir'"'; \
|
||||
echo orgidxconfdir = $topdir/recoll-config) > "$confdir/recoll.conf"
|
||||
|
||||
recollindex -c "$confdir"
|
||||
</programlisting>
|
||||
|
||||
<para>The examples below will assume that you have a dataset under
|
||||
<filename>/home/me/mydata/</filename>, with the index configuration and
|
||||
data stored inside
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user