install manpages
authorMichael Schroeder <mls@suse.de>
Mon, 10 Jun 2013 11:38:29 +0000 (13:38 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 10 Jun 2013 11:38:29 +0000 (13:38 +0200)
CMakeLists.txt
doc/CMakeLists.txt [new file with mode: 0644]
doc/Makefile.gen [moved from doc/Makefile with 100% similarity]
doc/libsolv-bindings.3
doc/libsolv-bindings.txt

index 56a62fd..042b018 100644 (file)
@@ -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 (file)
index 0000000..338716c
--- /dev/null
@@ -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")
similarity index 100%
rename from doc/Makefile
rename to doc/Makefile.gen
index 07e8024..f0d57bc 100644 (file)
@@ -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
index 3d1f65a..f6709aa 100644 (file)
@@ -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: