summaryrefslogblamecommitdiff
path: root/net-p2p/liberator/files/wrapper.sh
blob: 025b615326134a912c173e25d69cca2eaa291a7e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                 
#!/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 "${@}"