Advertisement
Guest User

Qt move script

a guest
Apr 25th, 2012
209
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem ===================== Original script by Binh Nguyen, modified by Lars Veldscholte =========
  2. @echo off
  3.  
  4. echo Setting up variable HOME
  5. set HOME=%cd%
  6.  
  7. echo Clearing variable PATH
  8. set PATH=
  9.  
  10. echo Setting up Qt
  11. set QTDIR=%HOME%\qt-4.8.1-mingw_tdm_dw2\
  12. set QMAKESPEC=%QTDIR%\mkspecs\win32-g++
  13. set PATH=%PATH%;%QTDIR%\qt\bin
  14. set PATH=%PATH%;%QTDIR%\bin
  15. rem You need this to have access to 'findstr' for patch-qt.bat.
  16. set PATH=%PATH%;c:\windows\system32
  17.  
  18. rem Specify that variables are local.
  19. setlocal
  20.  
  21. rem Get the old qt directory.
  22. for /f "tokens=3" %%i in ('findstr QT_SOURCE_TREE %QTDIR%\.qmake.cache') do set oldQtDir=%%i
  23.  
  24. rem Get the new qt directory
  25. set newQtDir=%QTDIR%
  26.  
  27. rem Go to the directory with qpatch.exe.
  28. cd %QTDIR%\bin
  29.  
  30. rem Patch.
  31. qpatch.exe files-to-patch-windows %oldQtDir% %newQtDir%
  32.  
  33. rem Return to the previous directory.
  34. cd ../../../..
  35.  
  36. rem Display a message to alleviate concern about the warning.
  37. echo Binh: I don't know how to fix the above warning. Should be okay for now.
  38.  
  39. rem Specify that variables are global.
  40. endlocal
  41. pause
Advertisement
RAW Paste Data Copied
Advertisement