From fa2b3bcc633ce6f658d659fb3c0a87ddb6bc91ba Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 10 Apr 2022 22:09:59 +0200 Subject: feat: install manpage --- CMakeLists.txt | 2 ++ doc/polymc.1.txt | 66 --------------------------------------------- program_info/CMakeLists.txt | 1 + program_info/polymc.6.txt | 64 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 66 deletions(-) delete mode 100644 doc/polymc.1.txt create mode 100644 program_info/polymc.6.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d45d4975..1c51d7d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -204,6 +204,7 @@ elseif(UNIX) set(LAUNCHER_DESKTOP_DEST_DIR "share/applications" CACHE STRING "Path to the desktop file directory") set(LAUNCHER_METAINFO_DEST_DIR "share/metainfo" CACHE STRING "Path to the metainfo directory") set(LAUNCHER_ICON_DEST_DIR "share/icons/hicolor/scalable/apps" CACHE STRING "Path to the scalable icon directory") + set(LAUNCHER_MAN_DEST_DIR "share/man/man6" CACHE STRING "Path to the man page directory") # jars path is determined on runtime, relative to "Application root path", generally /usr for Launcher_PORTABLE=0 set(Launcher_APP_BINARY_DEFS "-DLAUNCHER_JARS_LOCATION=${JARS_DEST_DIR}") @@ -211,6 +212,7 @@ elseif(UNIX) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_Desktop} DESTINATION ${LAUNCHER_DESKTOP_DEST_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_MetaInfo} DESTINATION ${LAUNCHER_METAINFO_DEST_DIR}) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_SVG} DESTINATION ${LAUNCHER_ICON_DEST_DIR}) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_ManPage} DESTINATION ${LAUNCHER_MAN_DEST_DIR} RENAME "${Launcher_APP_BINARY_NAME}.6") endif() # install as bundle with no dependencies included diff --git a/doc/polymc.1.txt b/doc/polymc.1.txt deleted file mode 100644 index 9ba34662..00000000 --- a/doc/polymc.1.txt +++ /dev/null @@ -1,66 +0,0 @@ -POLYMC(1) -========== -:doctype: manpage - - -NAME ----- -polymc - a launcher and instance manager for Minecraft. - - -SYNOPSIS --------- -*polymc* ['OPTIONS'] - - -DESCRIPTION ------------ -PolyMC 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 PolyMC. - -OPTIONS -------- -*-d, --dir*='DIRECTORY':: - Use 'DIRECTORY' as the PolyMC root. - -*-l, --launch*='INSTANCE_ID':: - Launch the instance specified by 'INSTANCE_ID'. - -*--alive*:: - Write a small 'live.check' file after PolyMC starts. - -*-h, --help*:: - Display help text and exit. - -*-v, --version*:: - Display program version and exit. -*-a, --profile*='PROFILE':: - Use the account specified by 'PROFILE' (only valid in combination with --launch). - -EXIT STATUS ------------ -*0*:: - Success - -*1*:: - Failure (syntax or usage error; configuration error; unexpected error). - -BUGS ----- - - -RESOURCES ---------- -GitHub: - -Main website: - -AUTHORS -------- -peterix - -swurl - -// vim: syntax=asciidoc diff --git a/program_info/CMakeLists.txt b/program_info/CMakeLists.txt index f9d7621d..9c243826 100644 --- a/program_info/CMakeLists.txt +++ b/program_info/CMakeLists.txt @@ -11,6 +11,7 @@ set(Launcher_DesktopFileName "org.polymc.PolyMC.desktop" PARENT_SCOPE) set(Launcher_Desktop "program_info/org.polymc.PolyMC.desktop" PARENT_SCOPE) set(Launcher_MetaInfo "program_info/org.polymc.PolyMC.metainfo.xml" PARENT_SCOPE) +set(Launcher_ManPage "program_info/polymc.6.txt" PARENT_SCOPE) set(Launcher_SVG "program_info/org.polymc.PolyMC.svg" PARENT_SCOPE) set(Launcher_Branding_ICNS "program_info/polymc.icns" PARENT_SCOPE) set(Launcher_Branding_WindowsRC "program_info/polymc.rc" PARENT_SCOPE) diff --git a/program_info/polymc.6.txt b/program_info/polymc.6.txt new file mode 100644 index 00000000..8f126cce --- /dev/null +++ b/program_info/polymc.6.txt @@ -0,0 +1,64 @@ +POLYMC(1) +========== +:doctype: manpage + + +NAME +---- +polymc - a launcher and instance manager for Minecraft. + + +SYNOPSIS +-------- +*polymc* ['OPTIONS'] + + +DESCRIPTION +----------- +PolyMC 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 PolyMC. + +OPTIONS +------- +*-d, --dir*='DIRECTORY':: + Use 'DIRECTORY' as the PolyMC root. + +*-l, --launch*='INSTANCE_ID':: + Launch the instance specified by 'INSTANCE_ID'. + +*--alive*:: + Write a small 'live.check' file after PolyMC starts. + +*-h, --help*:: + Display help text and exit. + +*-v, --version*:: + Display program version and exit. +*-a, --profile*='PROFILE':: + Use the account specified by 'PROFILE' (only valid in combination with --launch). + +EXIT STATUS +----------- +*0*:: + Success + +*1*:: + Failure (syntax or usage error; configuration error; unexpected error). + +BUGS +---- + + +RESOURCES +--------- +GitHub: + +Main website: + +AUTHORS +------- +PolyMC Contributors + +// vim: syntax=asciidoc -- cgit