1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- Accept a filename as a parameter and open it. Revert to the default

behavior and open the default file if no parameter is specified.

Reported by:	Jon Feuss <jon.feuss@feuss.net> (via private e-mail)
This commit is contained in:
Pietro Cerutti 2008-06-19 18:10:55 +00:00
parent e696084d23
commit fda4204969
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215298
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= tuxguitar
DISTVERSION= 1.0-rc4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-src-${DISTVERSION}

View File

@ -1,7 +1,9 @@
#! /bin/sh
PACKAGE_MAIN=org.herac.tuxguitar.gui.TGMain
ARGS=%%DATADIR%%/tuxguitar.tg
if [ "$1" ]; then ARGS=$1
else ARGS=%%DATADIR%%/tuxguitar.tg; fi
CLASSPATH=${CLASSPATH}
CLASSPATH=${CLASSPATH}:%%DATADIR%%
@ -18,4 +20,4 @@ MOZILLA_FIVE_HOME=%%PREFIX%%/lib/%%GECKO%% java ${SWT_HACK} \
${JAVA_FLAGS} \
-cp ${CLASSPATH} \
${PACKAGE_MAIN} \
%%DATADIR%%/tuxguitar.tg
"${ARGS}"