From 2062496bc43889de4e142a3f37d74975e0141dd6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 27 Mar 2013 07:34:20 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@4211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- test/chk.bat | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/chk.bat (limited to 'test/chk.bat') diff --git a/test/chk.bat b/test/chk.bat new file mode 100644 index 0000000000..fa8156066c --- /dev/null +++ b/test/chk.bat @@ -0,0 +1,26 @@ +set tp=%1 +if "%tp%"=="" (echo "please specify target platform 32 or 64!"&&pause&&goto :EOF) + +set hashes=%cd%\hashes.txt +set checksum=%cd%\..\checksum.exe +%checksum% Miranda%tp%.exe > %hashes% +%checksum% Zlib.dll >> %hashes% + +rem get checksum for folder(first param) and ext (second param) +call :checksum Plugins dll +call :checksum Icons dll + +rem put me at the end of script +rem getting checksum for dlls +rem "goto :eof" here to avoid run this subroutine at the end of script, so script will run till this point, and subroutine will called only where we need it +goto :eof +rem the subroutine itself starts here +:checksum +rem change the dir to first parameter, and remember it +pushd %1 +rem now we are here, let's get the hashes for dll +for /F "tokens=1,2 delims= " %%a in ('%checksum% *.%2') do echo %1\%%a %%b >> %hashes% +rem return to the dir, where subroutine was called +popd +rem this is just for the case if another sobroutine will be after this one :) +goto :eof \ No newline at end of file -- cgit v1.2.3