[ROCProfiler-Register/Systems/Compute] Fixing License file name usage (#927)

ROCProfiler-Register/Systems/Compute: The license file name in the CMake install module and other locations was originally LICENSE, but it was recently changed to LICENSE.md, requiring an update to the CMake install module and all other relevant locations.
Esse commit está contido em:
Ammar ELWazir
2025-09-10 14:46:39 -05:00
commit de GitHub
commit 2a9700fcd7
12 arquivos alterados com 14 adições e 19 exclusões
@@ -104,7 +104,7 @@ jobs:
test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/utils test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/utils
test -s $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/sample/vcopy.cpp test -s $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/sample/vcopy.cpp
test -d $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles test -d $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles
test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE.md
- name: Query version (setting PYTHONPATH by hand) - name: Query version (setting PYTHONPATH by hand)
run: | run: |
export PYTHONPATH=${INSTALL_DIR}/python-libs:$PYTHONPATH export PYTHONPATH=${INSTALL_DIR}/python-libs:$PYTHONPATH
@@ -21,7 +21,6 @@ trigger:
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- AUTHORS - AUTHORS
- LICENSE
- VERSION - VERSION
pr: pr:
@@ -36,7 +35,6 @@ pr:
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- AUTHORS - AUTHORS
- LICENSE
- VERSION - VERSION
drafts: false drafts: false
@@ -22,7 +22,6 @@ trigger:
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- AUTHORS - AUTHORS
- LICENSE
- VERSION - VERSION
pr: pr:
@@ -38,7 +37,6 @@ pr:
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- AUTHORS - AUTHORS
- LICENSE
- VERSION - VERSION
drafts: false drafts: false
+3 -3
Ver Arquivo
@@ -484,10 +484,10 @@ add_custom_target(
license license
COMMAND COMMAND
${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR}/src
--license ${PROJECT_SOURCE_DIR}/LICENSE --extension '.py' --license ${PROJECT_SOURCE_DIR}/LICENSE.md --extension '.py'
COMMAND COMMAND
${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/utils/update_license.py --source ${PROJECT_SOURCE_DIR}
--license ${PROJECT_SOURCE_DIR}/LICENSE --file --license ${PROJECT_SOURCE_DIR}/LICENSE.md --file
"src/${PACKAGE_NAME},cmake/Dockerfile,cmake/rocm_install.sh,docker/docker-entrypoint.sh,src/rocprof_compute_analyze/convertor/mongodb/convert" "src/${PACKAGE_NAME},cmake/Dockerfile,cmake/rocm_install.sh,docker/docker-entrypoint.sh,src/rocprof_compute_analyze/convertor/mongodb/convert"
) )
@@ -524,7 +524,7 @@ add_custom_target(
COMMAND mv rocprof-compute.bin ${CMAKE_BINARY_DIR}) COMMAND mv rocprof-compute.bin ${CMAKE_BINARY_DIR})
install( install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
DESTINATION ${CMAKE_INSTALL_DOCDIR} DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT main) COMPONENT main)
+1 -1
Ver Arquivo
@@ -16,7 +16,7 @@ feedback from the community. Please see the
[CONTRIBUTING.md](CONTRIBUTING.md) file for additional details on our [CONTRIBUTING.md](CONTRIBUTING.md) file for additional details on our
contribution process. contribution process.
* Licensing information can be found in the [LICENSE](LICENSE) file. * Licensing information can be found in the [LICENSE](LICENSE.md) file.
## Development ## Development
+1 -1
Ver Arquivo
@@ -7,4 +7,4 @@
License License
******* *******
.. include:: ../LICENSE .. include:: ../LICENSE.md
@@ -4,7 +4,7 @@ include_guard(GLOBAL)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
install( install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE FILES ${PROJECT_SOURCE_DIR}/LICENSE.md
DESTINATION ${CMAKE_INSTALL_DOCDIR} DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT core) COMPONENT core)
@@ -21,7 +21,6 @@ trigger:
- docs - docs
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- LICENSE
- VERSION - VERSION
- .wordlist.txt - .wordlist.txt
@@ -37,7 +36,6 @@ pr:
- docs - docs
- '.*.y*ml' - '.*.y*ml'
- '*.md' - '*.md'
- LICENSE
- VERSION - VERSION
- .wordlist.txt - .wordlist.txt
drafts: false drafts: false
+4 -3
Ver Arquivo
@@ -385,8 +385,8 @@ endif()
# ------------------------------------------------------------------------------# # ------------------------------------------------------------------------------#
configure_file( configure_file(
${PROJECT_SOURCE_DIR}/LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.md
${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE.md
COPYONLY COPYONLY
) )
@@ -430,7 +430,8 @@ install(
) )
install( install(
FILES ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE FILES
${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/LICENSE.md
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}
COMPONENT setup COMPONENT setup
) )
+1 -1
Ver Arquivo
@@ -99,7 +99,7 @@ Please see the [pre-commit documentation](https://pre-commit.com/#quick-start) f
## Code License ## ## Code License ##
All code contributed to this project will be licensed under the license identified in the [License](LICENSE). Your contribution will be accepted under the same license. All code contributed to this project will be licensed under the license identified in the [License](LICENSE.md). Your contribution will be accepted under the same license.
## References ## ## References ##
+1 -1
Ver Arquivo
@@ -5,4 +5,4 @@
License License
******* *******
.. include:: ../LICENSE .. include:: ../LICENSE.md
@@ -63,7 +63,7 @@ if [ ${#files_with_missing_copyright[@]} -ne 0 ]; then
else else
copyright_notice+="$comS"$'\n' copyright_notice+="$comS"$'\n'
fi fi
done < LICENSE done < LICENSE.md
# Add the notice to the beginning of the file # Add the notice to the beginning of the file
temp_file=$(mktemp) temp_file=$(mktemp)