Commit 6f571791 authored by dockes's avatar dockes
Browse files

more verbosity in install

parent 9b85733b
......@@ -2,7 +2,7 @@
#set -x
# A shell-script to make a recoll static binary distribution:
TAR=/usr/bin/tar
TAR=tar
targetdir=${targetdir-/tmp}
......
......@@ -28,28 +28,45 @@ if test $# != 1 ; then
fi
targetdir=$1
echo "Installing to $targetdir"
echo "Installing binaries to $targetdir"
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
" You need to build first."
install qtgui/recoll $targetdir/bin/recoll
install index/recollindex $targetdir/bin/recollindex
if test -d $HOME/.recoll ; then
cat <<EOF
if test -d $targetdir/bin -a -w $targetdir/bin ; then
install qtgui/recoll $targetdir/bin/recoll
install index/recollindex $targetdir/bin/recollindex
else
echo "Not installing binary executables to $targetdir/bin which is not writable"
echo "Going on with personal install"
fi
$HOME/.recoll already exists, no modification done.
You should check for new filters in the filters/ directory, and
for modifications to files in the sampleconf/ directory (ie new
mime types in mimemap).
me=`whoami`
if test "$me" != root ; then
if test -d $HOME/.recoll ; then
cat <<EOF
$HOME/.recoll already exists, no modification done.
You should check for new filters in the filters/ directory, and
for modifications to files in the sampleconf/ directory (ie new
mime types in mimemap).
EOF
exit 0
fi
exit 0
fi
mkdir $HOME/.recoll || exit 1
cp filters/rcl* $HOME/.recoll
chmod a+x $HOME/.recoll/rcl*
cd sampleconf
cp mimeconf mimemap recoll.conf $HOME/.recoll
chmod +w $HOME/.recoll/recoll.conf
chmod +w $HOME/.recoll/mimeconf
mkdir $HOME/.recoll || exit 1
cp filters/rcl* $HOME/.recoll
chmod a+x $HOME/.recoll/rcl*
cd sampleconf
cp mimeconf mimemap recoll.conf $HOME/.recoll
echo You should now take a look at $HOME/.recoll/recoll.conf
else
echo "Not installing personal configuration for root user"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment