Просмотр исходного кода

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.
Brad King 12 лет назад
Родитель
Сommit
993b685676
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 1
      Copyright.txt
  2. 3 1
      bootstrap

+ 2 - 1
Copyright.txt

@@ -1,5 +1,6 @@
 CMake - Cross Platform Makefile Generator
-Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
+Copyright 2000-2011 Kitware, Inc.
+Copyright 2000-2011 Insight Software Consortium
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without

+ 3 - 1
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