)
LIST(APPEND _my_man_pages_list "${_my_man_docbook}")
- SET (_my_args "-I${CMAKE_CURRENT_SOURCE_DIR}/util" "-MFortuneMod_GenManPage_App" "-E" "FortuneMod_GenManPage_App-\\>run" "--" "--src-dir" "${CMAKE_CURRENT_SOURCE_DIR}" "--basename=${basename}" "--dest-basename=${_dest_basename}" "--out-section=6" "--out-basename=fortune" "--subdir=fortune")
+ SET (_util_dir "${CMAKE_CURRENT_SOURCE_DIR}/util")
+ SET (_my_args "-I${_util_dir}" "${_util_dir}/fortmod_gen_manpage.pl" "--src-dir" "${CMAKE_CURRENT_SOURCE_DIR}" "--basename=${basename}" "--dest-basename=${_dest_basename}" "--out-section=6" "--out-basename=fortune" "--subdir=fortune")
ADD_CUSTOM_COMMAND(
OUTPUT "${_my_man_page}"
COMMAND "${PERL_EXECUTABLE}"
SET (_my_man_page_dir "${CMAKE_CURRENT_SOURCE_DIR}/util")
SET (_my_man_page "${_my_man_page_dir}/${basename}.man")
SET (_my_man_docbook "${_my_man_page_dir}/${basename}.docbook5.xml")
- SET (_my_args "-I${CMAKE_CURRENT_SOURCE_DIR}/util" "-MFortuneMod_GenManPage_App" "-E" "FortuneMod_GenManPage_App-\\>run" "--" "--src-dir" "${CMAKE_CURRENT_SOURCE_DIR}" "--basename=${basename}")
+ SET (_util_dir "${CMAKE_CURRENT_SOURCE_DIR}/util")
+ SET (_my_args "-I${_util_dir}" "${_util_dir}/fortmod_gen_manpage.pl" "--src-dir" "${CMAKE_CURRENT_SOURCE_DIR}" "--basename=${basename}")
ADD_CUSTOM_COMMAND(
OUTPUT "${_my_man_page}"
COMMAND "${PERL_EXECUTABLE}"
--- /dev/null
+#! /usr/bin/env perl
+#
+# Short description for fortmod_gen_manpage.pl
+#
+# Version 0.0.1
+# Copyright (C) 2020 Shlomi Fish < https://www.shlomifish.org/ >
+#
+# Licensed under the terms of the MIT license.
+
+use strict;
+use warnings;
+use 5.014;
+use autodie;
+
+use Path::Tiny qw/ path tempdir tempfile cwd /;
+
+use FortuneMod_GenManPage_App ();
+FortuneMod_GenManPage_App->run();