116 |
# Read-only variables. |
# Read-only variables. |
117 |
# |
# |
118 |
my $REVISION = '$Id$'; |
my $REVISION = '$Id$'; |
119 |
my $VERSION = ""; |
our $VERSION = ""; |
120 |
$VERSION = join (' ', (split (' ', $REVISION))[1..3]); |
$VERSION = join (' ', (split (' ', $REVISION))[1..3]); |
121 |
$VERSION =~ s/,v\b//; |
$VERSION =~ s/,v\b//; |
122 |
$VERSION =~ s/(\S+)$/($1)/; |
$VERSION =~ s/(\S+)$/($1)/; |
2763 |
} |
} |
2764 |
if ( $SHOW_HELP ) |
if ( $SHOW_HELP ) |
2765 |
{ |
{ |
2766 |
print <<END_OF_HELP; |
my $helpText = $literals->get( "HELP_TEXT" ); |
2767 |
GNUMP3d v$RELEASE - A portable(ish) MP3/OGG/HTTP streaming server. |
print $helpText; |
|
- See http://www.gnump3d.org/ for more details. |
|
|
|
|
|
Usage: gnump3d [options] |
|
|
|
|
|
--background Detatch from the console after starting. |
|
|
--config filename Read options from the named configuration file. |
|
|
--debug Dump debug output to the console, not the error log. |
|
|
--dump-plugins Display all plugins that have been found. |
|
|
--fast Start quickly without indexing the audio files first. |
|
|
--help Display this usage information. |
|
|
--lang XX Load the strings from the given language file. |
|
|
--plugin-dir directory Load the plugins from the given directory. |
|
|
--port number Listen and serve upon the given port number. |
|
|
--quiet Do not display the startup banner. |
|
|
--root directory Serve music from the given directory. |
|
|
--test Allow config variables to come from the environment. |
|
|
--theme-dir directory Load the theme files from the given directory. |
|
|
--version Displays the version of this software. |
|
|
|
|
|
Report bugs to : Steve Kemp <steve\@steve.org.uk> |
|
|
|
|
|
END_OF_HELP |
|
2768 |
exit; |
exit; |
2769 |
} |
} |
2770 |
if ( $SHOW_VERSION ) |
if ( $SHOW_VERSION ) |
2771 |
{ |
{ |
2772 |
print "gnump3d v$RELEASE [CVS Info: $VERSION]\n"; |
my $versionText = $literals->get( "VERSION_TEXT" ); |
2773 |
|
print $versionText; |
2774 |
exit; |
exit; |
2775 |
} |
} |
2776 |
if ( $SHOW_PLUGINS ) |
if ( $SHOW_PLUGINS ) |