#!/bin/sh
##
##  sweep -- Sophos Anti-Virus binary wrapper
##

#   force DSO to be pre-loaded
LD_PRELOAD="@l_prefix@/libexec/sav/sweep.so"
export LD_PRELOAD

#   make sure shared libaries are found
LD_LIBRARY_PATH="@l_prefix@/lib/sav:/usr/lib:/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

#   make sure private data is found
SAV_IDE="@l_prefix@/var/sav/data"
export SAV_IDE

#   execute original executable
exec @l_prefix@/libexec/sav/sweep ${1+"$@"}

