Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RDY] Add man page for corsix-th #1446

Merged
merged 1 commit into from Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CorsixTH/CMakeLists.txt
Expand Up @@ -244,6 +244,10 @@ if(NOT USE_SOURCE_DATADIRS)
)
install(FILES CorsixTH.lua ../LICENSE.txt DESTINATION ${CORSIX_TH_DATADIR})

if(UNIX AND NOT APPLE)
install(FILES corsix-th.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
endif()

if(APPLE)
# Fix the OS X bundle to include required libraries (create a redistributable app)
install(CODE "
Expand Down
94 changes: 94 additions & 0 deletions CorsixTH/corsix-th.6
@@ -0,0 +1,94 @@
.\" Copyright (c) 2018 Stephen "TheCycoONE" Baker
.\"
.\" Permission is hereby granted, free of charge, to any person obtaining a copy of
.\" this software and associated documentation files (the "Software"), to deal in
.\" the Software without restriction, including without limitation the rights to
.\" use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
.\" of the Software, and to permit persons to whom the Software is furnished to do
.\" so, subject to the following conditions:
.\"
.\" The above copyright notice and this permission notice shall be included in all
.\" copies or substantial portions of the Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
.\" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
.\" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
.\" SOFTWARE.
.\"
.\" This manpage is written in mdoc(7).
.\" Language reference: https://man.openbsd.org/mdoc.7
.Dd August 22, 2018
.Dt CORSIX-TH 6
.Os
.Sh NAME
.Nm corsix-th
.Nd "An" open source implementation "of" Theme Hospital
.Sh SYNOPSIS
.Nm
.Op Fl -bitmap-dir Ns = Ns Ar path
.Op Fl -config-file Ns = Ns Ar path
.Op Fl -connect-lua-dbgp
.Op Fl -dump=strings
.Op Fl -interpreter Ns = Ns Ar path
.Op Fl -load Ns = Ns Ar savegame
.Op Fl -lua-dir Ns = Ns Ar path
.Sh DESCRIPTION
CorsixTH is a reimplementation of the 1997 Bullfrog business simulation game Theme Hospital.
As well as faithfully recreating the original, CorsixTH adds support for modern operating systems, high resolution displays, and much more.
A purchased copy of Theme Hospital, or the Theme Hospital demo is required to use CorsixTH.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the demo useful for only a few levels? It now looks asif it's a full alternative for the purchased copy.
Would be fair to warn about that, I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this text, with minor editing, from http://corsixth.com/

.Pp
For more information visit
.Sm off
.Lk https://corsixth.com
\&.
.Sm on
.Sh OPTIONS
.Bl -tag -width 6n
.It Fl -bitmap-dir Ns = Ns Ar directory
Use
.Ar directory
for loading in game bitmaps.
.It Fl -config-file Ns = Ns Ar path
Use the specified config file instead of the default one.
.It Fl -connect-lua-dbgp
Connect to a Lua DBGp server.
.It Fl -dump=strings
Dumps all of the game strings to the config directory.
.It Fl -interpreter Ns = Ns Ar path
Run the lua bootstrap file at
.Ar path
\&.
This is the option you would use to point corsix-th to the CorsixTH.lua in a local git checkout.
.It Fl -load Ns = Ns Ar savegame
Load the specified
.Ar savegame
file from the Saves folder.
.Ar savegame
must include the .sav extension.
.It Fl -lua-dir Ns = Ns Ar directory
Use
.Ar directory
for loading the game engine lua scripts.
.El
.Sh FILES
.Bl -tag -width 6n
.It Pa $XDG_CONFIG_HOME/CorsixTH/config.txt
Configuration file.
.It Pa $XDG_CONFIG_HOME/CorsixTH/gamelog.txt
Log of the last run. Necessary for bug reporting.
.It Pa $XDG_CONFIG_HOME/CorsixTH/Levels/
Custom levels. The map editor saves maps in this directory.
.It Pa $XDG_CONFIG_HOME/CorsixTH/Saves/
Savegame directory.
.It Pa $XDG_CONFIG_HOME/CorsixTH/Screenshots/
Screenshot directory.
.El
.Sh COPYRIGHT
Copyright CorsixTH contributors.
CorsixTH is available under the MIT license.
.Pp
For the full license text see:
.Lk https://raw.githubusercontent.com/CorsixTH/CorsixTH/v0.62/LICENSE.txt