diff --git a/extra/md5.exe b/extra/md5.exe new file mode 100644 index 00000000..8bdc35cc Binary files /dev/null and b/extra/md5.exe differ diff --git a/src/qqt_function.pri b/src/qqt_function.pri index fae4a80f..caa18eed 100644 --- a/src/qqt_function.pri +++ b/src/qqt_function.pri @@ -158,6 +158,18 @@ defineReplace(get_lrelease_language){ return ($${command}) } +defineReplace(get_md5_command) { + filename = $$1 + isEmpty(1): error("get_md5_command(filename) requires one argument") + command = + win32 { + command = md5 -n $${filename} + } else { + command = echo 2> $${filename} + } + return ($$command) +} + ################################################ ##custom functions ################################################