Merge pull request #4186 from ImperatorStorm/addman

MultiMCGH-4120 Add manpage to ubuntu and rpm packages
This commit is contained in:
Petr Mrázek 2021-10-24 02:51:37 +02:00 committed by GitHub
commit 7f28f0bf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 102 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Name: MultiMC5
Version: 1.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A local install wrapper for MultiMC
License: ASL 2.0
@ -18,25 +18,30 @@ A local install wrapper for MultiMC
%build
%install
mkdir -p %{buildroot}/opt/multimc
install -m 0644 ../ubuntu/multimc/opt/multimc/icon.svg %{buildroot}/opt/multimc/icon.svg
install -m 0755 ../ubuntu/multimc/opt/multimc/run.sh %{buildroot}/opt/multimc/run.sh
mkdir -p %{buildroot}/%{_datadir}/applications
install -m 0644 ../ubuntu/multimc/usr/share/applications/multimc.desktop %{buildroot}/%{_datadir}/applications/multimc.desktop
mkdir -p %{buildroot}/%{_metainfodir}
install -m 0644 ../ubuntu/multimc/usr/share/metainfo/multimc.metainfo.xml %{buildroot}/%{_metainfodir}/multimc.metainfo.xml
mkdir -p %{buildroot}/%{_datadir}/metainfo
install -m 0644 ../ubuntu/multimc/usr/share/metainfo/multimc.metainfo.xml %{buildroot}/%{_datadir}/metainfo/multimc.metainfo.xml
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 0644 ../ubuntu/multimc/usr/share/man/man1/multimc.1 %{buildroot}/%{_mandir}/man1/multimc.1
%files
%dir /opt/multimc
/opt/multimc/icon.svg
/opt/multimc/run.sh
%{_datadir}/applications/multimc.desktop
%{_metainfodir}/multimc.metainfo.xml
%{_datadir}/metainfo/multimc.metainfo.xml
%dir /usr/share/man/man1
%{_mandir}/man1/multimc.1.gz
%changelog
* Sun Oct 03 2021 imperatorstorm <30777770+ImperatorStorm@users.noreply.github.com>
- added manpage
* Tue Jun 01 2021 kb1000 <fedora@kb1000.de> - 1.4-2
- Add xrandr to the dependencies

View File

@ -1,5 +1,5 @@
Package: multimc
Version: 1.6-1
Version: 1.6-2
Architecture: all
Maintainer: Petr Mrázek <peterix@gmail.com>
Section: games

View File

@ -0,0 +1,90 @@
'\" t
.\" Title: multimc
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 10/21/2021
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "MULTIMC" "1" "10/21/2021" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
multimc \- a launcher and instance manager for Minecraft\&.
.SH "SYNOPSIS"
.sp
\fBmultimc\fR [\fIOPTIONS\fR]
.SH "DESCRIPTION"
.sp
MultiMC is a custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once\&. It also allows you to easily install and remove mods by simply dragging and dropping\&. Here are the current features of MultiMC\&.
.SH "OPTIONS"
.PP
\fB\-d, \-\-dir\fR=\fIDIRECTORY\fR
.RS 4
Use
\fIDIRECTORY\fR
as the MultiMC root\&.
.RE
.PP
\fB\-l, \-\-launch\fR=\fIINSTANCE_ID\fR
.RS 4
Launch the instance specified by
\fIINSTANCE_ID\fR\&.
.RE
.PP
\fB\-\-alive\fR
.RS 4
Write a small
\fIlive\&.check\fR
file after MultiMC starts\&.
.RE
.PP
\fB\-h, \-\-help\fR
.RS 4
Display help text and exit\&.
.RE
.PP
\fB\-v, \-\-version\fR
.RS 4
Display program version and exit\&.
.RE
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fB1\fR
.RS 4
Failure (syntax or usage error; configuration error; unexpected error)\&.
.RE
.SH "BUGS"
.sp
https://github\&.com/MultiMC/Launcher/issues
.SH "RESOURCES"
.sp
GitHub: https://github\&.com/MultiMC/Launcher
.sp
Main website: https://multimc\&.org
.SH "AUTHORS"
.sp
peterix <peterix@gmail\&.com>