From 3d6725d5ac8805e56dbf32cf95e05326add68b17 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 14 Jan 2017 09:16:46 +0000 Subject: [PATCH] xestiaab.1: Added manual page This manual page is copied when 'make install' is run and deleted when 'make uninstall' is run. --- source/Makefile.in | 2 ++ source/configure | 7 +++++ source/configure.ac | 6 ++++ source/xestiaab.1 | 74 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 source/xestiaab.1 diff --git a/source/Makefile.in b/source/Makefile.in index 32d0e76..561b126 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -136,9 +136,11 @@ bitmaphelper: bitmaphelperobjs install: cp $(XAB_OUT) @BINDIR@/$(XAB_OUT) + cp xestiaab.1 @DATAROOTDIR@/man/man1/xestiaab.1 uninstall: rm @BINDIR@/$(XAB_OUT) + rm @DATAROOTDIR@/man/man1/xestiaab.1 test: @echo "To build and run the unit tests, run 'make' from the tests directory." diff --git a/source/configure b/source/configure index 7694d1b..77cf48c 100755 --- a/source/configure +++ b/source/configure @@ -658,6 +658,7 @@ WX_CONFIG_PATH EGREP GREP CXXCPP +DATAROOTDIR BINDIR PREFIX CPP @@ -3558,6 +3559,12 @@ fi BINDIR=`eval echo $bindir` +if test "x$datarootdir" = "xNONE" ; then + datarootdir="/share" +fi +DATAROOTDIR=`eval echo $datarootdir` + + # Checks for libraries. # wxWidgets diff --git a/source/configure.ac b/source/configure.ac index 3b75ca2..a3f6856 100644 --- a/source/configure.ac +++ b/source/configure.ac @@ -32,6 +32,12 @@ fi BINDIR=`eval echo $bindir` AC_SUBST([BINDIR]) +if test "x$datarootdir" = "xNONE" ; then + datarootdir="/share" +fi +DATAROOTDIR=`eval echo $datarootdir` +AC_SUBST([DATAROOTDIR]) + # Checks for libraries. # wxWidgets diff --git a/source/xestiaab.1 b/source/xestiaab.1 new file mode 100644 index 0000000..348a4b3 --- /dev/null +++ b/source/xestiaab.1 @@ -0,0 +1,74 @@ +.\" Manpage for Xestia Address Book (xestiaab) +.\" Visit https://gelforn.xestia.co.uk/addressbook to correct errors or typos. +.TH man 1 "13 Jan 2017" "0.17" "Xestia Address Book man page" +.SH NAME +xestiaab - Xestia Address Book +.SH SYNOPSIS +xestiaab [-h] [-e ] [-c] [-ifmt ] [-ofmt ] +.br + [-ifile ] [-ofile ] [-d ] [-s] [-v] +.SH DESCRIPTION +Xestia Address Book is a native CardDAV (RFC6352) address book client which uses vCard 4.0 (RFC6350) with search, sorting, detailed contact management and maintains compatibility with the OSX/iOS address book applications. +.br + +.br +Written in C++ using wxWidgets, cURL and SFML's audio library. +.SH OPTIONS + -h, --help +.br + Displays help on command line parameters. +.br + +.br + -e, --edit= +.br + Edit a vCard 4.0 formatted contact. +.br + +.br + -c, --convert +.br + Convert a contact file into another format. +.br + +.br + -ifmt: +.br + Input format to convert from. (used with -c) +.br + +.br + -ofmt: +.br + Output format to convert to. (used with -c) +.br + +.br + -ifile: +.br + Input filename to read from. (used with -c) +.br + +.br + -ofile: +.br + Output filename to write to. (don't use to pipe to console). (used with -c) +.br + +.br + -d, --display= +.br + Displays a contact in the contact information window using as the filename. +.br + + -s +.br + Displays the search window instead of starting normally. +.br + +.br + -v, --version +.br + Display version number +.SH AUTHOR +Xestia Software Development (http://xestia.co.uk/) -- 2.39.5