"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.6.0/man/update-html.cmake" (24 Jan 2020, 522 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 html -Oman=%N.html,style=../nih-man.css ${DIR}/${IN}
    3   OUTPUT_VARIABLE HTML)
    4 SET(LINKBASE "http://pubs.opengroup.org/onlinepubs/9699919799/functions/")
    5 STRING(REGEX REPLACE "(<a class=\"Xr\" href=\")([^\"]*)(\">)" "\\1${LINKBASE}\\2\\3" HTML "${HTML}")
    6 STRING(REGEX REPLACE "${LINKBASE}(libzip|zip)" "\\1" HTML "${HTML}")
    7 FILE(WRITE ${DIR}/${OUT}.new "${HTML}")
    8 CONFIGURE_FILE(${DIR}/${OUT}.new ${DIR}/${OUT} COPYONLY)
    9 FILE(REMOVE ${DIR}/${OUT}.new)
   10 
   11