diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2012-08-21 22:41:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-11 12:58:29 (GMT) |
commit | 34567dfc0db6ba3748270a33d1c24e55c25edbfe (patch) | |
tree | cf1e396f2546ad40d38460bb252f964e315cbfc8 /Source/cmFileCommand.h | |
parent | 2da17ef7975b521abe2be4736569d19ef79dc3be (diff) | |
download | CMake-34567dfc0db6ba3748270a33d1c24e55c25edbfe.zip CMake-34567dfc0db6ba3748270a33d1c24e55c25edbfe.tar.gz CMake-34567dfc0db6ba3748270a33d1c24e55c25edbfe.tar.bz2 |
file(DOWNLOAD): Generalize EXPECTED_MD5 to EXPECTED_HASH
Add support for SHA algorithms.
Diffstat (limited to 'Source/cmFileCommand.h')
-rw-r--r-- | Source/cmFileCommand.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h index ced26c4..ca2bdfd 100644 --- a/Source/cmFileCommand.h +++ b/Source/cmFileCommand.h @@ -83,6 +83,7 @@ public: " file(TO_NATIVE_PATH path result)\n" " file(DOWNLOAD url file [INACTIVITY_TIMEOUT timeout]\n" " [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS]\n" + " [EXPECTED_HASH MD5|SHA1|SHA224|SHA256|SHA384|SHA512 hash]\n" " [EXPECTED_MD5 sum])\n" " file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]\n" " [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])\n" @@ -168,11 +169,12 @@ public: "timeout after time seconds, time should be specified as an integer. " "The INACTIVITY_TIMEOUT specifies an integer number of seconds of " "inactivity after which the operation should terminate. " - "If EXPECTED_MD5 sum is specified, the operation will verify that the " - "downloaded file's actual md5 sum matches the expected value. If it " + "If EXPECTED_HASH is specified, the operation will verify that the " + "downloaded file's actual hash matches the expected value. If it " "does not match, the operation fails with an error. " + "(EXPECTED_MD5 is short-hand for EXPECTED_HASH MD5.) " "If SHOW_PROGRESS is specified, progress information will be printed " - "as status messages until the operation is complete." + "as status messages until the operation is complete. " "\n" "UPLOAD will upload the given file to the given URL. " "If LOG var is specified a log of the upload will be put in var. " |