From aed8d5f8f5d2b0351274a023470d8f89439ce6e3 Mon Sep 17 00:00:00 2001 From: ImperatorStorm <30777770+ImperatorStorm@users.noreply.github.com> Date: Thu, 21 Oct 2021 19:17:51 -0700 Subject: [PATCH] MultiMCGH-4120 Add manpage to ubuntu and rpm packages --- launcher/package/rpm/MultiMC5.spec | 17 ++-- .../package/ubuntu/multimc/DEBIAN/control | 2 +- .../multimc/usr/share/man/man1/multimc.1 | 90 +++++++++++++++++++ 3 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1 diff --git a/launcher/package/rpm/MultiMC5.spec b/launcher/package/rpm/MultiMC5.spec index 78b9000e..20839f11 100644 --- a/launcher/package/rpm/MultiMC5.spec +++ b/launcher/package/rpm/MultiMC5.spec @@ -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 - 1.4-2 - Add xrandr to the dependencies diff --git a/launcher/package/ubuntu/multimc/DEBIAN/control b/launcher/package/ubuntu/multimc/DEBIAN/control index be64f517..bfa3f1f2 100644 --- a/launcher/package/ubuntu/multimc/DEBIAN/control +++ b/launcher/package/ubuntu/multimc/DEBIAN/control @@ -1,5 +1,5 @@ Package: multimc -Version: 1.6-1 +Version: 1.6-2 Architecture: all Maintainer: Petr Mrázek Section: games diff --git a/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1 b/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1 new file mode 100644 index 00000000..b2031aa9 --- /dev/null +++ b/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1 @@ -0,0 +1,90 @@ +'\" t +.\" Title: multimc +.\" Author: [see the "AUTHORS" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" 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