Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem ===================== Original script by Binh Nguyen, modified by Lars Veldscholte =========
- @echo off
- echo Setting up variable HOME
- set HOME=%cd%
- echo Clearing variable PATH
- set PATH=
- echo Setting up Qt
- set QTDIR=%HOME%\qt-4.8.1-mingw_tdm_dw2\
- set QMAKESPEC=%QTDIR%\mkspecs\win32-g++
- set PATH=%PATH%;%QTDIR%\qt\bin
- set PATH=%PATH%;%QTDIR%\bin
- rem You need this to have access to 'findstr' for patch-qt.bat.
- set PATH=%PATH%;c:\windows\system32
- rem Specify that variables are local.
- setlocal
- rem Get the old qt directory.
- for /f "tokens=3" %%i in ('findstr QT_SOURCE_TREE %QTDIR%\.qmake.cache') do set oldQtDir=%%i
- rem Get the new qt directory
- set newQtDir=%QTDIR%
- rem Go to the directory with qpatch.exe.
- cd %QTDIR%\bin
- rem Patch.
- qpatch.exe files-to-patch-windows %oldQtDir% %newQtDir%
- rem Return to the previous directory.
- cd ../../../..
- rem Display a message to alleviate concern about the warning.
- echo Binh: I don't know how to fix the above warning. Should be okay for now.
- rem Specify that variables are global.
- endlocal
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement