From 0a6ac1c07d9400d3b12b65eaa01da78286be6fde Mon Sep 17 00:00:00 2001 From: Lukáš Lalinský Date: Sun, 24 Jan 2010 14:49:11 +0100 Subject: Install a man page on UNIX --- data/dbmodel.1 | 30 ++++++++++++++++++++++++++++++ src/src.pro | 21 +++++++++++++++------ 2 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 data/dbmodel.1 diff --git a/data/dbmodel.1 b/data/dbmodel.1 new file mode 100644 index 0000000..8b4ff85 --- /dev/null +++ b/data/dbmodel.1 @@ -0,0 +1,30 @@ +.TH DBMODEL "1" "January 2010" + +.SH NAME +Database Modeller - E-R diagram editor + +.SH SYNOPSIS +.B dbmodel [filename] + +.SH DESCRIPTION +.B Database Modeller +is a simple tool for drawing entity-relational diagrams. + +.SH OPTIONS +.TP +.B filename +Specificies the file to open when \fBdbmodel\fR starts. + +.SH BUGS +Please report bugs to \fIhttp://bugs.launchpad.net/dbmodel\fR. + +.SH AUTHOR +The author of Database Modeller and this manual page is Lukas Lalinsky . +.PP +Permission is granted to copy, distribute and/or modify this document under the +terms of the +GNU General Public License, Version 2 or any later version published by the Free +Software Foundation. +.PP +On Debian systems, the complete text of the GNU General Public License can be +found in /usr/share/common-licenses/GPL. diff --git a/src/src.pro b/src/src.pro index 5035315..7d3f7da 100644 --- a/src/src.pro +++ b/src/src.pro @@ -22,14 +22,23 @@ UI_DIR = $$PWD/.build RCC_DIR = $$PWD/.build unix { - isEmpty(PREFIX) { - PREFIX = /usr/local - } + isEmpty(PREFIX) { + PREFIX = /usr/local + } - BINDIR = $$PREFIX/bin + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share - INSTALLS += target - target.path = $$BINDIR + INSTALLS += target man man-compress + + target.path = $$BINDIR + + man.path = $$DATADIR/man/man1 + man.files += ../data/dbmodel.1 + + man-compress.path = $$DATADIR/man/man1 + man-compress.extra = "" "gzip -9 -f \$(INSTALL_ROOT)/$$DATADIR/man/man1/dbmodel.1" "" + man-compress.depends = install_man } # It's required for windows correct include path. -- cgit v1.2.3-54-g00ecf