Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
8444a464
Commit
8444a464
authored
10 years ago
by
Roman Tsisyk
Browse files
Options
Downloads
Patches
Plain Diff
Review fixes for gh-557-570-rpm-dist-man
Minor changes in cmake code style
parent
32176401
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
cmake/pod2man.cmake
+18
-14
18 additions, 14 deletions
cmake/pod2man.cmake
with
19 additions
and
14 deletions
.gitignore
+
1
−
0
View file @
8444a464
...
...
@@ -23,6 +23,7 @@ RPM
tags
extra/txt2c
extra/bin2c
extra/dist/tarantoolctl.1
cmake_install.cmake
config.mk
doc/www/content/docs/dev_guide.html
...
...
This diff is collapsed.
Click to expand it.
cmake/pod2man.cmake
+
18
−
14
View file @
8444a464
# Generate man pages of the project by using the POD header
# written in the tool source code. To use it - include this
# file in CMakeLists.txt and invoke
#
POD2MAN
(<podfile> <manfile> <section> <center>)
FIND_PROGRAM
(
POD2MAN pod2man
)
#
pod2man
(<podfile> <manfile> <section> <center>)
find_program
(
POD2MAN pod2man
)
MACRO
(
pod2man PODFILE MANFILE SECTION OUTPATH CENTER
)
if
(
NOT POD2MAN STREQUAL
"POD2MAN-NOTFOUND"
)
IF
(
NOT EXISTS
${
PODFILE
}
)
message
(
FATAL ERROR
"Could not find pod file
${
PODFILE
}
to generate man page"
)
ENDIF
(
NOT EXISTS
${
PODFILE
}
)
if
(
NOT POD2MAN
)
message
(
STATUS
"Could not find pod2man - man pages disabled"
)
endif
(
NOT POD2MAN
)
SET
(
OUTPATH_NEW
"
${
PROJECT_BINARY_DIR
}
/
${
OUTPATH
}
"
)
macro
(
pod2man PODFILE MANFILE SECTION OUTPATH CENTER
)
if
(
NOT EXISTS
${
PODFILE
}
)
message
(
FATAL ERROR
"Could not find pod file
${
PODFILE
}
to generate man page"
)
endif
(
NOT EXISTS
${
PODFILE
}
)
ADD_CUSTOM_COMMAND
(
if
(
POD2MAN
)
set
(
OUTPATH_NEW
"
${
PROJECT_BINARY_DIR
}
/
${
OUTPATH
}
"
)
add_custom_command
(
OUTPUT
${
OUTPATH_NEW
}
/
${
MANFILE
}
.
${
SECTION
}
COMMAND
${
POD2MAN
}
--section
${
SECTION
}
--center
${
CENTER
}
--release --stderr --name
${
MANFILE
}
${
PODFILE
}
>
--release --stderr --name
${
MANFILE
}
${
PODFILE
}
${
OUTPATH_NEW
}
/
${
MANFILE
}
.
${
SECTION
}
)
SET
(
MANPAGE_TARGET
"man-
${
MANFILE
}
"
)
ADD_CUSTOM_TARGET
(
${
MANPAGE_TARGET
}
ALL
set
(
MANPAGE_TARGET
"man-
${
MANFILE
}
"
)
add_custom_target
(
${
MANPAGE_TARGET
}
ALL
DEPENDS
${
OUTPATH_NEW
}
/
${
MANFILE
}
.
${
SECTION
}
)
INSTALL
(
install
(
FILES
${
OUTPATH_NEW
}
/
${
MANFILE
}
.
${
SECTION
}
DESTINATION
${
CMAKE_INSTALL_MANDIR
}
/man
${
SECTION
}
)
endif
()
ENDMACRO
(
pod2man PODFILE MANFILE SECTION OUTPATH CENTER
)
endmacro
(
pod2man PODFILE MANFILE SECTION OUTPATH CENTER
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment