"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.6.0/man/update-man.cmake" (24 Jan 2020, 294 Bytes) of package /linux/misc/libzip-1.6.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # expect variables IN, OUT, and DIR
    2 EXECUTE_PROCESS(COMMAND mandoc -T man ${DIR}/${IN} OUTPUT_VARIABLE MAN)
    3 STRING(REGEX REPLACE "NetBSD [0-9.]*" "NiH" MAN "${MAN}")
    4 FILE(WRITE ${DIR}/${OUT}.new "${MAN}")
    5 CONFIGURE_FILE(${DIR}/${OUT}.new ${DIR}/${OUT} COPYONLY)
    6 FILE(REMOVE ${DIR}/${OUT}.new)
    7