[PATCH] D120646: [clang][scan-build] Change mode of installation for scan-build.1

Manas Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 28 00:13:20 PST 2022


manas created this revision.
Herald added a subscriber: mgorny.
manas requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Currently, manpage for scan-build is installed as a program, with
permission of 755. This patch makes installation of scan-build.1 as
file, with 644 permission.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120646

Files:
  clang/tools/scan-build/CMakeLists.txt


Index: clang/tools/scan-build/CMakeLists.txt
===================================================================
--- clang/tools/scan-build/CMakeLists.txt
+++ clang/tools/scan-build/CMakeLists.txt
@@ -74,7 +74,7 @@
                          "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/"
                        DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage})
     list(APPEND Depends "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage}")
-    install(PROGRAMS man/${ManPage}
+    install(FILES man/${ManPage}
             DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
             COMPONENT scan-build)
   endforeach()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120646.411745.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220228/3df7a90d/attachment.bin>


More information about the cfe-commits mailing list