mirror of https://github.com/PCSX2/pcsx2.git
Win32: Improved batch files for clean_msvc and preBuild, using %~dp0 to fetch the folder/location of the command script.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1967 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
eff929cf09
commit
036004d9cf
|
@ -1,12 +1,21 @@
|
|||
:: clean_msvc.cmd
|
||||
::
|
||||
:: This batch file cleans up some files that MSVC's Clean/Rebuild commands tend to miss.
|
||||
:: In particular the .ilk and .pdb files are known to get corrupted and cause all sorts of odd
|
||||
:: linker errors, and the .ncb files can also get corrupted and cause intellisense breakges.
|
||||
:: This batch file cleans up some files that MSVC's Clean/Rebuild commands tend to miss. In
|
||||
:: particular the .ilk and .pdb files are known to get corrupted and cause all sorts of odd linker
|
||||
:: linker errors, and the .ncb files can also get corrupted and cause intellisense breakges.
|
||||
::
|
||||
:: Safety: This tool should be pretty safe. None of the files it deletes are important. That
|
||||
:: is, they're all files MSVC just rebuilds automatically next time you run/recompile. But even
|
||||
:: so, don't go running this batch file in your root c:\ folder. It's probably not a wise action.
|
||||
:: Enjoy. :)
|
||||
:: Safety: This tool should be pretty safe. It uses the command path to perform the deletion,
|
||||
:: instead of relying on the CWD (which can sometimes fail to be set when working with UNCs across
|
||||
:: network shares). Furthermore, none of the files it deletes are important. That is, they're
|
||||
:: all files MSVC just rebuilds automatically next time you run/recompile. The one minor
|
||||
:: exception is *.pdb, since windows and a lot of developer tools include PDB sets to assist in
|
||||
:: application debugging (however these files are by no means required by any software).
|
||||
|
||||
del /s *.ncb;*.ilk;*.pdb;*.bsc;*.sbr;*.res;*.pch
|
||||
del /s "%~dp0\*.ncb"
|
||||
del /s "%~dp0\*.ilk"
|
||||
del /s "%~dp0\*.idb"
|
||||
del /s "%~dp0\*.bsc"
|
||||
del /s "%~dp0\*.sbr"
|
||||
del /s "%~dp0\*.res"
|
||||
del /s "%~dp0\*.pch"
|
||||
del /s "%~dp0\*.pdb"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
SETLOCAL ENABLEEXTENSIONS
|
||||
|
||||
set mydir=%~0\..\
|
||||
set mydir=%~dp0
|
||||
SubWCRev.exe "%~1" "%mydir%\svnrev_template.h" "%CD%\svnrev.h"
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo Automatic revision update unavailable, using generic template instead.
|
||||
|
|
Loading…
Reference in New Issue