# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2023 Marcel Telka # %include-3% # Rename section 1 man page(s) to contain version number COMPONENT_POST_INSTALL_ACTION += \ for f in $(PROTOUSRSHAREMAN1DIR)/*.1 ; do \ [[ -f $$f ]] || continue ; \ for v in $(PYTHON_VERSIONS) ; do \ [[ "$$f" == "$${f%%$$v.1}" ]] || continue 2 ; \ done ; \ $(MV) $$f $${f%%.1}-$(PYTHON_VERSION).1 ; \ done ; # Replace Python version in man page file paths GENERATE_EXTRA_CMD += | \ $(GSED) -e 's|\(usr/share/man/man.*-\)3\.[0-9]\{1,\}\(\.[0-9]\)|\1$$(PYVER)\2|' | uniq %hook-manifest% # Create mediated symlinks printf ' emit link path=%%<1>%%<2>.1 target=%%<2>-%%<3>.1 mediator=python mediator-version=%%<3> >\n' >> "$DISTRIBUTION-PYVER.p5m"