freebsd-ports/net-p2p/liberator/files/wrapper.sh
2003-05-02 05:07:33 +00:00

15 lines
242 B
Bash

#!/bin/sh
PREFIX="%%PREFIX%%"
PROGRAM="${0}"
DATADIR="%%DATADIR%%"
MIME_FILE=liber_mimetypes
if [ ! -f ${MIME_FILE} ]
then
cp -f ${PREFIX}/${DATADIR}/${MIME_FILE} \
${HOME}/.${MIME_FILE}
fi
exec ${PREFIX}/bin/${PROGRAM##*/}-real "${@}"