more verbosity in install

This commit is contained in:
dockes 2005-10-21 15:41:33 +00:00
parent 9b85733beb
commit 6f57179101
2 changed files with 36 additions and 19 deletions

View File

@ -2,7 +2,7 @@
#set -x #set -x
# A shell-script to make a recoll static binary distribution: # A shell-script to make a recoll static binary distribution:
TAR=/usr/bin/tar TAR=tar
targetdir=${targetdir-/tmp} targetdir=${targetdir-/tmp}

View File

@ -28,14 +28,21 @@ if test $# != 1 ; then
fi fi
targetdir=$1 targetdir=$1
echo "Installing to $targetdir" echo "Installing binaries to $targetdir"
test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \ test -x qtgui/recoll || fatal "qtgui/recoll does not exist." \
" You need to build first." " You need to build first."
if test -d $targetdir/bin -a -w $targetdir/bin ; then
install qtgui/recoll $targetdir/bin/recoll install qtgui/recoll $targetdir/bin/recoll
install index/recollindex $targetdir/bin/recollindex 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
me=`whoami`
if test "$me" != root ; then
if test -d $HOME/.recoll ; then if test -d $HOME/.recoll ; then
cat <<EOF cat <<EOF
@ -52,4 +59,14 @@ cp filters/rcl* $HOME/.recoll
chmod a+x $HOME/.recoll/rcl* chmod a+x $HOME/.recoll/rcl*
cd sampleconf cd sampleconf
cp mimeconf mimemap recoll.conf $HOME/.recoll cp mimeconf mimemap recoll.conf $HOME/.recoll
chmod +w $HOME/.recoll/recoll.conf
chmod +w $HOME/.recoll/mimeconf
echo You should now take a look at $HOME/.recoll/recoll.conf
else
echo "Not installing personal configuration for root user"
fi