[lightsoff/arnaudb/rework-ui: 28/29] Add a man page.




commit 02e786bdf88d14362b73464da2cb6d478f3f9b72
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Nov 21 13:54:15 2020 +0100

    Add a man page.
    
    Fixes #6.

 data/lightsoff.6 | 41 +++++++++++++++++++++++++++++++++++++++++
 data/meson.build |  3 +++
 2 files changed, 44 insertions(+)
---
diff --git a/data/lightsoff.6 b/data/lightsoff.6
new file mode 100644
index 0000000..5b30620
--- /dev/null
+++ b/data/lightsoff.6
@@ -0,0 +1,41 @@
+.\" Copyright (C) 2020 Arnaud Bonatti <arnaud bonatti gmail com>
+.\"
+.\" This file is part of LightsOff.
+.\"
+.\" LightsOff is free software: you can redistribute it and/or modify
+.\" it under the terms of the GNU General Public License as published by
+.\" the Free Software Foundation, either version 2 of the License, or
+.\" (at your option) any later version.
+.\"
+.\" LightsOff is distributed in the hope that it will be useful,
+.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+.\" GNU General Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License
+.\" along with LightsOff.  If not, see <https://www.gnu.org/licenses/>.
+.TH LIGHTSOFF 6 "2020\-11\-21" "GNOME"
+.SH NAME
+LightsOff \- Turn off all the lights
+.SH SYNOPSIS
+.B lightsoff
+.RI [ OPTION... ]
+.\" copied from the AppData file
+.SH DESCRIPTION
+Lights Off is a collection of light switch puzzles. Clicking on a light
+toggles it either on or off, but also toggles all the surrounding lights,
+too. Your objective is simple: turn off all the lights!
+
+Players who delight in turning off lights will enjoy the huge number of
+levels.
+.SH OPTIONS
+.TP
+.B \-v, \-\-version
+Prints the program version and exits.
+.P
+This program also accepts the standard GTK+ options.
+.SH AUTHORS
+.B lightsoff
+was written by Tim Horton and various other people.
+.P
+This manual page was written by Arnaud Bonatti for the GNOME project.
diff --git a/data/meson.build b/data/meson.build
index db8a583..0ef736d 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -62,6 +62,9 @@ if appstream_util.found()
   )
 endif
 
+# Install man page
+install_man('@0@.6'.format(meson.project_name()))
+
 # Gschema
 install_data('org.gnome.LightsOff.gschema.xml',
   install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]