1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/audio/agbrowser/files/wrapper.sh
Mario Sergio Fujikawa Ferreira 7bc2223333 o Fix bug: do not incorrectly use shift from sh(1). First command
line argument was being lost when there was more than 1 argument.
o bump PORTREVISION
2002-01-06 03:05:49 +00:00

17 lines
442 B
Bash

#!/bin/sh
PREFIX="%%PREFIX%%"
LOCALBASE="%%LOCALBASE%%"
PROGRAM="${0}"
SATELLITE=AGSatellite
if [ ! -d ${HOME}/.agsatellite ] || [ ! -h ${HOME}/.agsatellite/${SATELLITE} ]
then
${LOCALBASE}/bin/${SATELLITE} -createdironly
fi
cd ${HOME}/.agsatellite &&
echo Running Audio Galaxy Browser under ${HOME}/.agsatellite &&
echo Use this directory as the Satellite Directory in the Settings Tab &&
exec ${PREFIX}/bin/${PROGRAM##*/}-real ${*}