Skip to content

Commit

Permalink
Add MAN page
Browse files Browse the repository at this point in the history
Closes #16
  • Loading branch information
zaps166 committed Jun 4, 2016
1 parent 5d09c2f commit eb0e16c
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compile_unix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ else
sed -i "s/Exec=/Exec=$SedQMPlay2Path\//;s/Icon=/Icon=$SedQMPlay2Path\/app\/share\/icons\//" app/share/applications/*.desktop
fi

if hash gzip 2> /dev/null; then
VERSION=$(./version)
if [ $? == 0 ]; then
mkdir -p app/share/man/man1
cp src/gui/Unix/QMPlay2.1 app/share/man/man1
sed -i "s/VERSION/$VERSION/" app/share/man/man1/QMPlay2.1
gzip -f app/share/man/man1/QMPlay2.1
fi
fi

if [ ! -z $SOLID_ACTIONS ]; then
mkdir -p $SOLID_ACTIONS
cp src/gui/KDE4/qmplay2-opencda.desktop $SOLID_ACTIONS
Expand Down
1 change: 1 addition & 0 deletions installer_unix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function remove_files
sudo rm -v /usr/$libdir/libqmplay2.so
sudo rm -v -r /usr/include/QMPlay2
sudo rm -v /usr/share/applications/QMPlay2*.desktop
sudo rm -v /usr/share/man/man1/QMPlay2.1.gz
sudo rm -v /usr/share/icons/QMPlay2.png
sudo rm -v /usr/share/icons/hicolor/128x128/apps/QMPlay2.png
if [ -d /usr/share/kde4/apps/solid/actions ]; then
Expand Down
84 changes: 84 additions & 0 deletions src/gui/Unix/QMPlay2.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.TH "QMPlay2" "1" "VERSION" "Dmitriy A. Perlow aka DAP-DarkneSS" ""
.SH "NAME"
QMPlay2 — Qt Media Player 2
.br
.SH "SYNTAX"
QMPlay2 [\fIoption\fR]
.br
.SH "DESCRIPTION"
QMPlay2 is a video and audio player. It can play all formats supported by FFmpeg, libmodplug (including J2B and SFX). It also supports Audio CD, raw files, Rayman 2 music and chiptunes. It contains YouTube browser.
.br
.SH "OPTIONS"
-open <\fIaddress\fR>
.br
Opens specified <\fIaddress\fR>.
.br

-enqueue <\fIaddress\fR>
.br
Adds specified <\fIaddress\fR> to playlist.
.br

-noplay
.br
Doesn't play after run (bypass "Remember playback position" option).
.br

-toggle
.br
Toggles play/pause.
.br

-show
.br
Ensures that the window will be visible if the application is running.
.br

-fullscreen
.br
Toggles fullscreen.
.br

-volume <\fI0..100\fR>
.br
Sets specified volume.
.br

-speed <\fI0.05..100.0\fR>
.br
Sets specified playback speed.
.br

-seek <\fIs\fR>
.br
Seeks to the specified value <\fIs\fR>.
.br

-stop
.br
Stops playback.
.br

-next
.br
Plays next on the list.
.br

-prev
.br
Plays previous on the list.
.br

-quit
.br
Terminates the application.
.br
.SH "AUTHORS"
Błażej Szczygieł
.br
Creator and developer
.br
E-Mail: spaz16@wp.pl
.br
Web page: http://zaps166.sourceforge.net
.br
3 changes: 3 additions & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

cut -c25-32 src/qmplay2/headers/Version.hpp | grep "\."

0 comments on commit eb0e16c

Please sign in to comment.