-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'decorated' rule consequence #1537
base: master
Are you sure you want to change the base?
Conversation
This adds the ability to change a client's decoration attribute from a rule consequence.
@t-wissmann I would like to add documentation and tests to go along with this PR but I'm running into some troubles. When
I can't figure out why Any suggestions? |
Hi, thanks for your effort to also update documentation & tests :-) I don't have a guess where the PATH might have been broken. Maybe we can find the issue via printf-debugging. Where is xsltproc? ( diff --git doc/CMakeLists.txt doc/CMakeLists.txt
index e30becbe..3e4f7750 100644
--- doc/CMakeLists.txt
+++ doc/CMakeLists.txt
@@ -81,6 +81,7 @@ function(gen_manpage sourcefile man_nr)
"XMLLINT = '${CMAKE_CURRENT_SOURCE_DIR}/patch-manpage-xml.py'")
add_custom_command(
OUTPUT ${dst}
+ COMMAND echo "PATH in CMAKE: $ENV{PATH}"
COMMAND ${ASCIIDOC_A2X}
--verbose
--conf-file=${custom_asciidoc_cfg}
diff --git doc/patch-manpage-xml.py doc/patch-manpage-xml.py
index 51394fe7..02fb7f41 100755
--- doc/patch-manpage-xml.py
+++ doc/patch-manpage-xml.py
@@ -17,6 +17,7 @@ for arg in sys.argv[1:]:
filename = arg
break
+print(f"PATH in the python script: \"{os.environ['PATH']}\"", file=sys.stderr)
xsltproc = 'xsltproc'
doc_directory = os.path.dirname(__file__) After adding these statements, you should see their output when running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, working as intended.
@t-wissmann I made a tiny bit of progress. It looks like if you use a configuration file for diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index e30becbe..a95bf8fd 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -78,7 +78,7 @@ function(gen_manpage sourcefile man_nr)
# our script patching the man page xml instead of running xmllint
set(custom_asciidoc_cfg "${CMAKE_CURRENT_BINARY_DIR}/a2x-patched-dont-install.conf")
file(WRITE ${custom_asciidoc_cfg}
- "XMLLINT = '${CMAKE_CURRENT_SOURCE_DIR}/patch-manpage-xml.py'")
+ "ENV = None\nXMLLINT = '${CMAKE_CURRENT_SOURCE_DIR}/patch-manpage-xml.py'")
add_custom_command(
OUTPUT ${dst}
COMMAND ${ASCIIDOC_A2X} However, once that is working I get this error:
This appears to be coming from I feel like I'm missing a package that provides the XSL files that |
Here on archlinux, many xml/xsl files come in the package But I suspect that it's not worth the effort to make asciidoc work on your system. For the changes in this PR, it's probably the easiest to disable the documentation on your machine. You can do so by running cmake -D WITH_DOCUMENTATION=no .. from your build directory. As soon as you push changes to |
This adds the ability to change a client's decoration attribute from a rule consequence.
Currently a WIP to let others know what I'm up to. I still need to write a test and documentation for this.