3 #=======================================================================
5 # File ID: 335cff5c-df3e-11e5-91a8-99c8fc62a08c
7 # Wrapper to start TuxGuitar.
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
25 " -n "$progname" -- "$@
")"
26 test "$?" = "0" ||
exit 1
34 -h|
--help) opt_help
=1; shift ;;
35 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
36 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
37 --version) echo $progname $VERSION; exit 0 ;;
39 *) echo $progname: Internal error
>&2; exit 1 ;;
42 opt_verbose
=$
(($opt_verbose - $opt_quiet))
44 prgdir
=/usr
/local
/prg
/tuxguitar
46 if test "$opt_help" = "1"; then
47 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
50 Start TuxGuitar from everywhere on the system. Expects tuxguitar.sh to
51 be stored in $prgdir/ .
53 Usage: $progname [options]
60 Be more quiet. Can be repeated to increase silence.
62 Increase level of verbosity. Can be repeated.
64 Print version information.
70 if test -e "$prgdir/tuxguitar.sh"; then
72 echo $progname: Cannot chdir to
/usr
/local
/prg
/tuxguitar
/ >&2
77 echo $progname: $prgdir/tuxguitar.sh not found
>&2