1:: Copyright (c) 2022, The OpenThread Authors. 2:: All rights reserved. 3:: 4:: Redistribution and use in source and binary forms, with or without 5:: modification, are permitted provided that the following conditions are met: 6:: 1. Redistributions of source code must retain the above copyright 7:: notice, this list of conditions and the following disclaimer. 8:: 2. Redistributions in binary form must reproduce the above copyright 9:: notice, this list of conditions and the following disclaimer in the 10:: documentation and/or other materials provided with the distribution. 11:: 3. Neither the name of the copyright holder nor the 12:: names of its contributors may be used to endorse or promote products 13:: derived from this software without specific prior written permission. 14:: 15:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16:: AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17:: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18:: ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 19:: LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20:: CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21:: SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22:: INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23:: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24:: ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25:: POSSIBILITY OF SUCH DAMAGE. 26:: 27 28set THREADDIR=%systemdrive%\GRL\Thread1.2 29xcopy /E /Y Thread_Harness %THREADDIR%\Thread_Harness 30copy /Y ..\..\harness-thci\OpenThread.py %THREADDIR%\Thread_Harness\THCI 31copy /Y ..\..\harness-thci\OpenThread_BR.py %THREADDIR%\Thread_Harness\THCI 32copy /Y ..\..\harness-thci\OpenThread.png %THREADDIR%\Web\images 33copy /Y ..\..\harness-thci\OpenThread_BR.png %THREADDIR%\Web\images 34copy /Y ..\posix\config.yml %THREADDIR%\Thread_Harness\simulation 35xcopy /E /Y ..\posix\sniffer_sim\proto %THREADDIR%\Thread_Harness\simulation\Sniffer\proto 36 37%THREADDIR%\Python27\python.exe -m pip install --upgrade pip 38%THREADDIR%\Python27\python.exe -m pip install -r requirements.txt 39 40%THREADDIR%\Python27\python.exe Web\data\updateDeviceFields.py Web\data\deviceInputFields.xml 41 42set BASEDIR=%THREADDIR%\Thread_Harness 43%systemdrive%\GRL\Thread1.2\Python27\python.exe -m grpc_tools.protoc -I%BASEDIR% --python_out=%BASEDIR% --grpc_python_out=%BASEDIR% simulation/Sniffer/proto/sniffer.proto 44 45pause 46