Commits

Anonymous committed 0c26746

Convert to the INST_POD2MAN macro

Comments (0)

Files changed (9)

     )
 ENDMACRO(RUN_POD2MAN)
 
+
+MACRO(INST_POD2MAN TARGET_NAME SOURCE DEST SECTION)
+   RUN_POD2MAN("${TARGET_NAME}" "${SOURCE}" "${DEST}.${SECTION}"
+       "${SECTION}"
+       "EN Tools" "EN Tools"
+   )
+   INSTALL_MAN ("${DEST}.${SECTION}" "${SECTION}")
+ENDMACRO(INST_POD2MAN)
+
 MACRO(INST_RENAME_POD2MAN TARGET_NAME SOURCE DEST SECTION INSTNAME)
    RUN_POD2MAN("${TARGET_NAME}" "${SOURCE}" "${DEST}.${SECTION}"
        "${SECTION}"

src/wml_backend/p1_ipp/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("ipp_preproc" "ipp.src" "ipp.pl")
-RUN_POD2MAN("ipp_pod" "ipp.src" "ipp.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("ipp_pod" "ipp.src" "ipp" "1")

src/wml_backend/p5_divert/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("divert_preproc" "divert.src" "divert.pl")
-RUN_POD2MAN("divert_pod" "divert.src" "divert.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("divert_pod" "divert.src" "divert" "1")

src/wml_backend/p6_asubst/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("asubst_preproc" "asubst.src" "asubst.pl")
-RUN_POD2MAN("asubst_pod" "asubst.src" "asubst.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("asubst_pod" "asubst.src" "asubst" "1")

src/wml_backend/p7_htmlfix/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("htmlfix_preproc" "htmlfix.src" "htmlfix.pl")
-RUN_POD2MAN("htmlfix_pod" "htmlfix.src" "htmlfix.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("htmlfix_pod" "htmlfix.src" "htmlfix" "1")

src/wml_backend/p8_htmlstrip/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("htmlstrip_preproc" "htmlstrip.src" "htmlstrip.pl")
-RUN_POD2MAN("htmlstrip_pod" "htmlstrip.src" "htmlstrip.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("htmlstrip_pod" "htmlstrip.src" "htmlstrip" "1")

src/wml_backend/p9_slice/CMakeLists.txt

 include("../../Common.cmake")
 
 PREPROCESS_PATH_PERL("slice_preproc" "slice_main.pl" "slice")
-RUN_POD2MAN("slice_pod" "slice.pod" "slice.1" "1" "EN Tools" "EN Tools")
+INST_POD2MAN("slice_pod" "slice.pod" "slice" "1")

src/wml_docs/CMakeLists.txt

 
 FOREACH(MYDOC ${WML_DOCS})
     SET (POD_SRC "${MYDOC}.pod")
-    SET (MAN7_LOCAL "${MYDOC}.7")
+    SET (MAN_LOCAL "${MYDOC}")
 
-    RUN_POD2MAN("wml_doc_${MYDOC}_pod" "${POD_SRC}" "${MAN7_LOCAL}" 
-        "7" "EN Tools" "EN Tools"
-    )
-
-    INSTALL_MAN("${MAN7_LOCAL}" "7")
+    INST_POD2MAN("wml_doc_${MYDOC}_pod" "${POD_SRC}" "${MAN_LOCAL}" "7")
 ENDFOREACH(MYDOC ${WML_DOCS})
 

src/wml_frontend/CMakeLists.txt

     SET (destbase "${cmd}.pl")
     SET (dest "${CMAKE_CURRENT_BINARY_DIR}/${destbase}")
     SET (src "${CMAKE_CURRENT_SOURCE_DIR}/${cmd}.src")
-    SET (manname "${CMAKE_CURRENT_BINARY_DIR}/${cmd}.1")
+    SET (manname "${CMAKE_CURRENT_BINARY_DIR}/${cmd}")
 
     ADD_CUSTOM_COMMAND(
         OUTPUT "${dest}"
         DEPENDS "${src}"
     )
     INSTALL (FILES "${dest}" DESTINATION "bin")
-    RUN_POD2MAN("${cmd}_pod" "${src}" "${manname}" "1" "EN Tools" "EN Tools")
+    INST_POD2MAN("${cmd}_pod" "${src}" "${manname}" "1")
     ADD_CUSTOM_TARGET(
         "preprocess_perl_frontend_${cmd}" ALL
         DEPENDS "${dest}"