From 22395a71acf0c8fbb449698d7a7f25a3c05383bb Mon Sep 17 00:00:00 2001 From: codestation Date: Sun, 15 Mar 2015 00:11:30 -0430 Subject: [PATCH] Moved manpages seections to (1) as they aren't games. Install manpages via qmake. --- qcma.6 => man/qcma.1 | 2 +- qcma_cli.6 => man/qcma_cli.1 | 2 +- qcma_cli.pro | 9 ++++++++- qcma_gui.pro | 7 ++++++- 4 files changed, 16 insertions(+), 4 deletions(-) rename qcma.6 => man/qcma.1 (94%) rename qcma_cli.6 => man/qcma_cli.1 (96%) diff --git a/qcma.6 b/man/qcma.1 similarity index 94% rename from qcma.6 rename to man/qcma.1 index e9720f1..ab0bbcc 100644 --- a/qcma.6 +++ b/man/qcma.1 @@ -1,4 +1,4 @@ -.TH QCMA 6 "MARCH 2015" +.TH QCMA 1 "MARCH 2015" .SH NAME qcma \- Content manager for the PlayStation Vita .SH SYNOPSIS diff --git a/qcma_cli.6 b/man/qcma_cli.1 similarity index 96% rename from qcma_cli.6 rename to man/qcma_cli.1 index feb93b5..140d8e1 100644 --- a/qcma_cli.6 +++ b/man/qcma_cli.1 @@ -1,4 +1,4 @@ -.TH QCMA-CLI 6 "MARCH 2015" +.TH QCMA-CLI 1 "MARCH 2015" .SH NAME qcma-cli \- Content manager for the PlayStation Vita .SH SYNOPSIS diff --git a/qcma_cli.pro b/qcma_cli.pro index 86d4597..ae326fc 100644 --- a/qcma_cli.pro +++ b/qcma_cli.pro @@ -13,7 +13,14 @@ HEADERS += \ # Linux-only config unix:!macx { + + DATADIR = $$PREFIX/share + MANDIR = $$DATADIR/man/man1 + + man_cli.files = man/qcma_cli.1 + man_cli.path = $$MANDIR + target.path = $$BINDIR - INSTALLS += target + INSTALLS += target man_cli } diff --git a/qcma_gui.pro b/qcma_gui.pro index 76fa196..9d72ed2 100644 --- a/qcma_gui.pro +++ b/qcma_gui.pro @@ -48,6 +48,8 @@ unix:!macx { DATADIR = $$PREFIX/share + MANDIR = $$DATADIR/man/man1 + # config for desktop file and icon desktop.path = $$DATADIR/applications/$${TARGET} desktop.files += resources/$${TARGET}.desktop @@ -55,7 +57,10 @@ unix:!macx { icon64.path = $$DATADIR/icons/hicolor/64x64/apps icon64.files += resources/images/$${TARGET}.png + man.files = man/qcma.1 + man.path = $$MANDIR + target.path = $$BINDIR - INSTALLS += target desktop icon64 + INSTALLS += target desktop icon64 man }