blob: 42547114370bb389021f822f16c4e1e501bd7721 [file] [log] [blame]
# expect variables IN, OUT, and DIR
EXECUTE_PROCESS(COMMAND mandoc -T man ${DIR}/${IN} OUTPUT_VARIABLE MAN)
STRING(REGEX REPLACE "NetBSD [0-9.]*" "NiH" MAN "${MAN}")
FILE(WRITE ${DIR}/${OUT}.new "${MAN}")
CONFIGURE_FILE(${DIR}/${OUT}.new ${DIR}/${OUT} COPYONLY)
FILE(REMOVE ${DIR}/${OUT}.new)