summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-06-10 13:38:29 +0200
committerMichael Schroeder <mls@suse.de>2013-06-10 13:38:29 +0200
commit5e4dfcf63fcc8accee5ea2056d75f0e0bd286123 (patch)
treeb75d14c76440de080b0dd240876cc6f9417e6355
parent31238bfdd2022fb752f955031d75b259fe63102e (diff)
downloadlibsolv-5e4dfcf63fcc8accee5ea2056d75f0e0bd286123.tar.gz
libsolv-5e4dfcf63fcc8accee5ea2056d75f0e0bd286123.tar.bz2
libsolv-5e4dfcf63fcc8accee5ea2056d75f0e0bd286123.zip
install manpages
-rw-r--r--CMakeLists.txt2
-rw-r--r--doc/CMakeLists.txt7
-rw-r--r--doc/Makefile.gen (renamed from doc/Makefile)0
-rw-r--r--doc/libsolv-bindings.32
-rw-r--r--doc/libsolv-bindings.txt2
5 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 56a62fd..042b018 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,7 @@ ELSE (DEFINED LIB)
ENDIF (DEFINED LIB)
MESSAGE (STATUS "Libraries will be installed in ${LIB_INSTALL_DIR}")
SET (BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
+SET (MAN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/man")
####################################################################
# CONFIGURATION #
@@ -296,6 +297,7 @@ IF (ENABLE_PERL OR ENABLE_PYTHON OR ENABLE_RUBY)
ADD_SUBDIRECTORY (bindings)
ENDIF (ENABLE_PERL OR ENABLE_PYTHON OR ENABLE_RUBY)
ADD_SUBDIRECTORY (examples)
+ADD_SUBDIRECTORY (doc)
MESSAGE (STATUS "Version: ${VERSION}")
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..338716c
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+SET (libsolv_MANPAGES
+ libsolv.3 libsolv-bindings.3 libsolv-constantids.3 libsolv-history.3)
+
+INSTALL(FILES
+ ${libsolv_MANPAGES}
+ DESTINATION "${MAN_INSTALL_DIR}/man3")
diff --git a/doc/Makefile b/doc/Makefile.gen
index eb6005a..eb6005a 100644
--- a/doc/Makefile
+++ b/doc/Makefile.gen
diff --git a/doc/libsolv-bindings.3 b/doc/libsolv-bindings.3
index 07e8024..f0d57bc 100644
--- a/doc/libsolv-bindings.3
+++ b/doc/libsolv-bindings.3
@@ -85,7 +85,7 @@ my \fI$iter\fR \fB=\fR \fI$pool\fR\fB\->solvables_iter()\fR;
.RE
.\}
.sp
-As a downside of this approach, iterator objects can have no attributes\&.
+As a downside of this approach, iterator objects cannot have attributes\&.
.sp
If an array needs to be passed to a method it is usually done by reference, if a method returns an array it returns it on the stack:
.sp
diff --git a/doc/libsolv-bindings.txt b/doc/libsolv-bindings.txt
index 3d1f65a..f6709aa 100644
--- a/doc/libsolv-bindings.txt
+++ b/doc/libsolv-bindings.txt
@@ -42,7 +42,7 @@ tied arrays so that it is possible to iterate with a for() statement:
my $iter = $pool->solvables_iter();
for my $solvable (@$iter) { ... };
-As a downside of this approach, iterator objects can have no attributes.
+As a downside of this approach, iterator objects cannot have attributes.
If an array needs to be passed to a method it is usually done by reference,
if a method returns an array it returns it on the stack: