From 993b685676de7bd63c7e45d7b119acc2da9b2fc3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 12 Nov 2013 15:56:36 -0500 Subject: bootstrap: Parse Copyright.txt instead of duplicating notice Use 'grep' to extract the copyright notice from Copyright.txt instead of duplicating it in the bootstrap script. --- bootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index 2d44d67652..89d68d9aed 100755 --- a/bootstrap +++ b/bootstrap @@ -62,6 +62,8 @@ if [ "$cmake_version_rc" != "" ]; then cmake_version="${cmake_version}-rc${cmake_version_rc}" fi +cmake_copyright="`grep '^Copyright .* Kitware' "${cmake_source_dir}/Copyright.txt"`" + cmake_data_dir_keyword="OTHER" cmake_doc_dir_keyword="OTHER" cmake_man_dir_keyword="OTHER" @@ -402,7 +404,7 @@ Directory and file names: # Display CMake bootstrap usage cmake_version_display() { - echo "CMake ${cmake_version}, Copyright 2000-2012 Kitware, Inc." + echo "CMake ${cmake_version}, ${cmake_copyright}" } # Display CMake bootstrap error, display the log file and exit -- cgit v1.2.1