|
1 | 1 | # This port is for testing that x-script works; see test-script-asset-cache.c |
2 | 2 | vcpkg_download_distfile( |
3 | 3 | SOURCE_PATH |
4 | | - URLS https://example.com/hello-world.txt |
| 4 | + URLS https://raw.githubusercontent.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE.txt |
5 | 5 | # This must stay uppercase to check that the SHA512 is properly tolower'd when it gets passed to x-script |
6 | | - SHA512 09E1E2A84C92B56C8280F4A1203C7CFFD61B162CFE987278D4D6BE9AFBF38C0E8934CDADF83751F4E99D111352BFFEFC958E5A4852C8A7A29C95742CE59288A8 |
7 | | - FILENAME hello-world.txt |
| 6 | + SHA512 65077997890F66F6041BB3284BB7B88E27631411CCBC253201CA4E00C4BCC58C0D77EDFFDA4975498797CC10772C7FD68FBEB13CC4AC493A3471A9D49E5B6F24 |
| 7 | + FILENAME vcpkg-tool-1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8-LICENSE.txt |
8 | 8 | ) |
9 | 9 |
|
10 | 10 | file(READ "${SOURCE_PATH}" CONTENTS) |
11 | | -if (NOT CONTENTS STREQUAL "Hello, world!\n") |
| 11 | +if (NOT CONTENTS STREQUAL [[Copyright (c) Microsoft Corporation |
| 12 | + |
| 13 | +All rights reserved. |
| 14 | + |
| 15 | +MIT License |
| 16 | + |
| 17 | +Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 18 | +this software and associated documentation files (the "Software"), to deal in |
| 19 | +the Software without restriction, including without limitation the rights to |
| 20 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 21 | +of the Software, and to permit persons to whom the Software is furnished to do |
| 22 | +so, subject to the following conditions: |
| 23 | + |
| 24 | +The above copyright notice and this permission notice shall be included in all |
| 25 | +copies or substantial portions of the Software. |
| 26 | + |
| 27 | +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 28 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 29 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 30 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 31 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 32 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 33 | +SOFTWARE. |
| 34 | +]]) |
12 | 35 | message(FATAL_ERROR "Downloaded file has incorrect contents: ${CONTENTS}") |
13 | 36 | endif() |
14 | 37 |
|
|
0 commit comments