"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.5.2/man/CMakeLists.txt" (12 Mar 2019, 4791 Bytes) of package /linux/misc/libzip-1.5.2.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 1.5.0_vs_1.5.1.

    1 SET(MAN_PAGES
    2   ZIP_SOURCE_GET_ARGS.3
    3   libzip.3
    4   zip_add.3
    5   zip_add_dir.3
    6   zip_close.3
    7   zip_delete.3
    8   zip_dir_add.3
    9   zip_discard.3
   10   zip_error_clear.3
   11   zip_error_code_system.3
   12   zip_error_code_zip.3
   13   zip_error_fini.3
   14   zip_error_get.3
   15   zip_error_get_sys_type.3
   16   zip_error_init.3
   17   zip_error_set.3
   18   zip_error_strerror.3
   19   zip_error_system_type.3
   20   zip_error_to_data.3
   21   zip_error_to_str.3
   22   zip_errors.3
   23   zip_fclose.3
   24   zip_fdopen.3
   25   zip_file_add.3
   26   zip_file_extra_field_delete.3
   27   zip_file_extra_field_get.3
   28   zip_file_extra_field_set.3
   29   zip_file_extra_fields_count.3
   30   zip_file_get_comment.3
   31   zip_file_get_error.3
   32   zip_file_get_external_attributes.3
   33   zip_file_rename.3
   34   zip_file_set_comment.3
   35   zip_file_set_encryption.3
   36   zip_file_set_external_attributes.3
   37   zip_file_set_mtime.3
   38   zip_file_strerror.3
   39   zip_fopen.3
   40   zip_fopen_encrypted.3
   41   zip_fread.3
   42   zip_fseek.3
   43   zip_ftell.3
   44   zip_get_archive_comment.3
   45   zip_get_archive_flag.3
   46   zip_get_error.3
   47   zip_get_file_comment.3
   48   zip_get_name.3
   49   zip_get_num_entries.3
   50   zip_get_num_files.3
   51   zip_libzip_version.3
   52   zip_name_locate.3
   53   zip_open.3
   54   zip_register_progress_callback.3
   55   zip_register_progress_callback_with_state.3
   56   zip_rename.3
   57   zip_set_archive_comment.3
   58   zip_set_archive_flag.3
   59   zip_set_default_password.3
   60   zip_set_file_comment.3
   61   zip_set_file_compression.3
   62   zip_source.3
   63   zip_source_begin_write.3
   64   zip_source_buffer.3
   65   zip_source_buffer_fragment.3
   66   zip_source_close.3
   67   zip_source_commit_write.3
   68   zip_source_error.3
   69   zip_source_file.3
   70   zip_source_filep.3
   71   zip_source_free.3
   72   zip_source_function.3
   73   zip_source_is_deleted.3
   74   zip_source_keep.3
   75   zip_source_make_command_bitmap.3
   76   zip_source_open.3
   77   zip_source_read.3
   78   zip_source_rollback_write.3
   79   zip_source_seek.3
   80   zip_source_seek_compute_offset.3
   81   zip_source_seek_write.3
   82   zip_source_stat.3
   83   zip_source_tell.3
   84   zip_source_tell_write.3
   85   zip_source_win32a.3
   86   zip_source_win32handle.3
   87   zip_source_win32w.3
   88   zip_source_write.3
   89   zip_source_zip.3
   90   zip_stat.3
   91   zip_stat_init.3
   92   zip_unchange.3
   93   zip_unchange_all.3
   94   zip_unchange_archive.3
   95   zipcmp.1
   96   zipmerge.1
   97   ziptool.1
   98 )
   99 
  100 FOREACH(MAN_PAGE ${MAN_PAGES})
  101   STRING(REGEX REPLACE "[1-9]$" "${DOCUMENTATION_FORMAT}" SOURCE_FILE ${MAN_PAGE})
  102   IF (DOCUMENTATION_FORMAT MATCHES "html")
  103     INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE} DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME ${SOURCE_FILE})
  104   ELSE()
  105     STRING(REGEX REPLACE ".*(.)$" "man\\1" SUBDIR ${MAN_PAGE})
  106     INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE} DESTINATION ${CMAKE_INSTALL_MANDIR}/${SUBDIR})
  107   ENDIF()
  108   # CONFIGURE_FILE does not find out about updates to the sources, and it does not provide a target
  109   #CONFIGURE_FILE(${SOURCE_FILE} ${MAN_PAGE} COPYONLY)
  110   ADD_CUSTOM_COMMAND(OUTPUT ${MAN_PAGE}
  111     DEPENDS ${SOURCE_FILE}
  112     COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE}
  113     COMMENT "Preparing ${MAN_PAGE}"
  114     )
  115 
  116   STRING(REGEX REPLACE "[1-9]$" "html" HTML_FILE ${MAN_PAGE})
  117   STRING(REGEX REPLACE "[1-9]$" "man" MAN_FILE ${MAN_PAGE})
  118   STRING(REGEX REPLACE "[1-9]$" "mdoc" MDOC_FILE ${MAN_PAGE})
  119 
  120   # html re-generation
  121   ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${HTML_FILE}
  122     DEPENDS ${MDOC_FILE}
  123     COMMAND ${CMAKE_COMMAND} -DIN=${MDOC_FILE} -DOUT=${HTML_FILE} -DDIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/update-html.cmake
  124     )
  125   LIST(APPEND UPDATEHTML ${CMAKE_CURRENT_SOURCE_DIR}/${HTML_FILE})
  126 
  127   # man re-generation
  128   ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${MAN_FILE}
  129     DEPENDS ${MDOC_FILE}
  130     COMMAND ${CMAKE_COMMAND} -DIN=${MDOC_FILE} -DOUT=${MAN_FILE} -DDIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/update-man.cmake
  131     )
  132   LIST(APPEND UPDATEMAN ${CMAKE_CURRENT_SOURCE_DIR}/${MAN_FILE})
  133 ENDFOREACH()
  134 ADD_CUSTOM_TARGET(man ALL DEPENDS ${MAN_PAGES})
  135 ADD_CUSTOM_TARGET(update-man DEPENDS ${UPDATEMAN})
  136 ADD_CUSTOM_TARGET(update-html DEPENDS ${UPDATEHTML})
  137 
  138 FILE(STRINGS links MANPAGE_LINKS)
  139 FOREACH(LINKS_LINE ${MANPAGE_LINKS})
  140   IF(${LINKS_LINE} MATCHES "(.*) (.*)")
  141     SET(SOURCE ${CMAKE_MATCH_1})
  142     SET(TARGET ${CMAKE_MATCH_2})
  143     IF (DOCUMENTATION_FORMAT MATCHES "html")
  144       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SOURCE}.3 DESTINATION ${CMAKE_INSTALL_DOCDIR} RENAME ${TARGET}.html)
  145     ELSE()
  146       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SOURCE}.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 RENAME ${TARGET}.3)
  147     ENDIF()
  148   ENDIF()
  149 ENDFOREACH()
  150 
  151 ADD_CUSTOM_TARGET(update_zip_errors
  152   COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/make_zip_errors.sh ${CMAKE_SOURCE_DIR}/lib/zip.h ${CMAKE_CURRENT_SOURCE_DIR}/zip_errors.mdoc
  153   DEPENDS ${CMAKE_SOURCE_DIR}/lib/zip.h ${CMAKE_CURRENT_SOURCE_DIR}/zip_errors.mdoc
  154 )