Browse Source

bootstrap: Update copyright line extraction for reST markup in LICENSE.rst

Since commit 8d83487e60 (CONTRIBUTORS: Factor contributors list out of
license file, 2025-03-02) the copyright line has reStructuredText
markup.  Filter it out of the copyright line printed by `bootstrap`.
Brad King 7 months ago
parent
commit
00b6a4b592
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bootstrap

+ 2 - 1
bootstrap

@@ -64,7 +64,8 @@ if test "$cmake_version_rc" != ""; then
   cmake_version="${cmake_version}-rc${cmake_version_rc}"
 fi
 
-cmake_copyright="`grep '^Copyright .* Kitware' "${cmake_source_dir}/LICENSE.rst"`"
+cmake_copyright="`grep '^Copyright .* Kitware' "${cmake_source_dir}/LICENSE.rst" |
+                  sed 's/\`Contributors.*\`_/Contributors/'`"
 
 cmake_bin_dir_keyword="OTHER"
 cmake_data_dir_keyword="OTHER"