diff options
| -rw-r--r-- | CMakeLists.txt | 34 | ||||
| -rw-r--r-- | man/inkscape.de.pod.in (renamed from inkscape.de.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.el.pod.in (renamed from inkscape.el.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.fr.pod.in (renamed from inkscape.fr.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.ja.pod.in (renamed from inkscape.ja.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.pod.in (renamed from inkscape.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.sk.pod.in (renamed from inkscape.sk.pod.in) | 0 | ||||
| -rw-r--r-- | man/inkscape.zh_TW.pod.in (renamed from inkscape.zh_TW.pod.in) | 0 |
8 files changed, 17 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 03777c1f4..ac969d125 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,8 @@ if(NOT POD2MAN) message(STATUS "Could not find pod2man - man pages disabled") endif() -macro(pod2man PODFILE RELEASE SECTION CENTER) +macro(pod2man PODFILE_FULL RELEASE SECTION CENTER) + get_filename_component(PODFILE ${PODFILE_FULL} NAME) string(REPLACE "." ";" PODFILE_LIST ${PODFILE}) list(GET PODFILE_LIST 0 NAME) list(GET PODFILE_LIST 1 LANG) @@ -162,7 +163,6 @@ macro(pod2man PODFILE RELEASE SECTION CENTER) set(LANG "") endif() - set(PODFILE_FULL "${CMAKE_CURRENT_SOURCE_DIR}/${PODFILE}") if(NOT EXISTS ${PODFILE_FULL}) message(FATAL ERROR "Could not find pod file ${PODFILE_FULL} to generate man page") endif(NOT EXISTS ${PODFILE_FULL}) @@ -170,12 +170,12 @@ macro(pod2man PODFILE RELEASE SECTION CENTER) if(POD2MAN) if(LANG) set(MANPAGE_TARGET "man-${NAME}-${LANG}") - set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${LANG}.tmp") - set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${LANG}.${SECTION}") + set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${LANG}.tmp") + set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${LANG}.${SECTION}") else() set(MANPAGE_TARGET "man-${NAME}") - set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.tmp") - set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${SECTION}") + set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.tmp") + set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${SECTION}") endif() add_custom_command( OUTPUT ${MANFILE_TEMP} @@ -215,17 +215,17 @@ FILE(READ ${CMAKE_CURRENT_SOURCE_DIR}/AUTHORS content) STRING(REGEX REPLACE "^([^\n#]+)\n" "\\1;\n" content_list "${content}") JOIN(INKSCAPE_AUTHORS "," "${content_list}") -foreach(podinfile - inkscape.pod.in - inkscape.de.pod.in - inkscape.el.pod.in - inkscape.fr.pod.in - inkscape.ja.pod.in - inkscape.sk.pod.in - inkscape.zh_TW.pod.in) - # FIXME: Once automake is eliminated, output to inkscape.pod instead of inkscape.pod.cmake - configure_file(${podinfile} ${podinfile}.cmake) - pod2man(${podinfile}.cmake ${INKSCAPE_VERSION} 1 "Inkscape Commands Manual") +foreach(podfile + man/inkscape.pod + man/inkscape.de.pod + man/inkscape.el.pod + man/inkscape.fr.pod + man/inkscape.ja.pod + man/inkscape.sk.pod + man/inkscape.zh_TW.pod) + set(POD_IN ${CMAKE_CURRENT_BINARY_DIR}/${podfile}.in) + configure_file(${POD_IN} ${podfile}) + pod2man(${podfile} ${INKSCAPE_VERSION} 1 "Inkscape Commands Manual") endforeach() # ----------------------------------------------------------------------------- diff --git a/inkscape.de.pod.in b/man/inkscape.de.pod.in index 9efa89f9e..9efa89f9e 100644 --- a/inkscape.de.pod.in +++ b/man/inkscape.de.pod.in diff --git a/inkscape.el.pod.in b/man/inkscape.el.pod.in index 6ee913ad5..6ee913ad5 100644 --- a/inkscape.el.pod.in +++ b/man/inkscape.el.pod.in diff --git a/inkscape.fr.pod.in b/man/inkscape.fr.pod.in index 3892f22b4..3892f22b4 100644 --- a/inkscape.fr.pod.in +++ b/man/inkscape.fr.pod.in diff --git a/inkscape.ja.pod.in b/man/inkscape.ja.pod.in index 568f3d114..568f3d114 100644 --- a/inkscape.ja.pod.in +++ b/man/inkscape.ja.pod.in diff --git a/inkscape.pod.in b/man/inkscape.pod.in index 4fc996f96..4fc996f96 100644 --- a/inkscape.pod.in +++ b/man/inkscape.pod.in diff --git a/inkscape.sk.pod.in b/man/inkscape.sk.pod.in index 0010ef475..0010ef475 100644 --- a/inkscape.sk.pod.in +++ b/man/inkscape.sk.pod.in diff --git a/inkscape.zh_TW.pod.in b/man/inkscape.zh_TW.pod.in index c664cdb55..c664cdb55 100644 --- a/inkscape.zh_TW.pod.in +++ b/man/inkscape.zh_TW.pod.in |
