#! /bin/sh # $Id$ # $URL: https://svn.non-gnu.uvt.nl/uvt-dev/trunk/sources/meresco/bzv/bin/reindexer $ set -e case $0 in */*) prefix=$(dirname $0) ;; *) self=$(which $0) prefix=$(dirname $self) esac python=python2.5 prefix=${prefix%/bin} export prefix export PYTHONPATH=$prefix/lib/python:$prefix/lib/:$prefix/lib/python2.5:$prefix/lib/python2.5/site-packages export LANG=en_US.UTF-8 echo PYTHONPATH: $PYTHONPATH if (test -n $2) then repo="repository=$2" fi #FIXME het is ook mogelijk om de parameter "identifier=" mee te geven. De parameter "repository=" heeft dan geen betekenis (wordt genegeerd) exec "$python" "$prefix/bin/reindexer.py" "$prefix/etc/bzv/bzv.cfg" "session=$1" "$repo"