From: Michael Schroeder Date: Mon, 10 Jun 2013 11:38:29 +0000 (+0200) Subject: install manpages X-Git-Tag: BASE-SuSE-Code-13_1-Branch~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e4dfcf63fcc8accee5ea2056d75f0e0bd286123;p=thirdparty%2Flibsolv.git install manpages --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 56a62fde..042b0189 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 00000000..338716cf --- /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 similarity index 100% rename from doc/Makefile rename to doc/Makefile.gen diff --git a/doc/libsolv-bindings.3 b/doc/libsolv-bindings.3 index 07e80241..f0d57bca 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 3d1f65a5..f6709aa3 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: