diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2004-07-15 00:29:43 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2004-07-15 00:29:43 +0000 |
commit | e8f98f92d2982446cb4aedbae581f7652e00876a (patch) | |
tree | 91263949b853c5b32ea9981b93bbe7ee196500ca /build/win32 | |
parent | 8bdbc199bc88c735007690dc9eeaa59c0f0c3526 (diff) | |
download | httpd-e8f98f92d2982446cb4aedbae581f7652e00876a.tar.gz |
Moderize our .rc generation, using the license-2.0 text,
extracting copyright dates from the version header, and
dropping a redundant s/./,/.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/win32')
-rw-r--r-- | build/win32/win32ver.awk | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/build/win32/win32ver.awk b/build/win32/win32ver.awk index 0930c4936e..5b1bc1e3af 100644 --- a/build/win32/win32ver.awk +++ b/build/win32/win32ver.awk @@ -49,6 +49,9 @@ BEGIN { } while ((getline < rel_h) > 0) { + if (match ($0, /^.*Copyright /)) { + copyright = substr($0, RLENGTH + 1); + } if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER [^*]/)) { ver_major = $3; } @@ -65,7 +68,6 @@ BEGIN { ver = ver_major "." ver_minor "." ver_patch ver_patch_modifier; verc = ver_major "," ver_minor "," ver_patch; - gsub(/\./, ",", verc); if (build) { sub(/-.*/, "", verc) verc = verc "," build; @@ -102,17 +104,22 @@ BEGIN { print " BEGIN"; print " BLOCK \"040904b0\""; print " BEGIN"; - print " VALUE \"Comments\", \"All rights reserved. The license "\ - "is available at <http://www.apache.org/licenses/LICENSE-2.0.txt>. "\ - "The Apache HTTP Server project pages are at "\ - "<http://httpd.apache.org/>.\\0\""; + print " VALUE \"Comments\", "\ + "\"Licensed under the Apache License, Version 2.0 (the \"\"License\"\"); "\ + "you may not use this file except in compliance with the License. "\ + "You may obtain a copy of the License at\\r\\n\\r\\n"\ + "http://www.apache.org/licenses/LICENSE-2.0\\r\\n\\r\\n"\ + "Unless required by applicable law or agreed to in writing, "\ + "software distributed under the License is distributed on an "\ + "\"\"AS IS\"\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, "\ + "either express or implied. See the License for the specific "\ + "language governing permissions and limitations under the License.\\0\""; print " VALUE \"CompanyName\", \"Apache Software Foundation\\0\""; print " VALUE \"FileDescription\", \"" desc "\\0\""; print " VALUE \"FileVersion\", \"" ver "\\0\""; print " VALUE \"InternalName\", \"" file "\\0\""; - print " VALUE \"LegalCopyright\", \"Copyright © 2000-2004 "\ - "The Apache Software Foundation.\\0\""; - print " VALUE \"OriginalFilename\", \"" file ".exe\\0\""; + print " VALUE \"LegalCopyright\", \"Copyright " copyright "\\0\""; + print " VALUE \"OriginalFilename\", \"" file "\\0\""; if (vendor) { print " VALUE \"PrivateBuild\", \"" vendor "\\0\""; } |