/[pcsx2_0.9.7]/trunk/clean_msvc.cmd
ViewVC logotype

Contents of /trunk/clean_msvc.cmd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 2 months ago) by william
File size: 1288 byte(s)
committing r3113 initial commit again...
1 :: clean_msvc.cmd
2 ::
3 :: This batch file cleans up some files that MSVC's Clean/Rebuild commands tend to miss. In
4 :: particular the .ilk and .pdb files are known to get corrupted and cause all sorts of odd linker
5 :: linker errors, and the .ncb files can also get corrupted and cause intellisense breakges.
6 ::
7 :: Safety: This tool should be pretty safe. It uses the command path to perform the deletion,
8 :: instead of relying on the CWD (which can sometimes fail to be set when working with UNCs across
9 :: network shares). Furthermore, none of the files it deletes are important. That is, they're
10 :: all files MSVC just rebuilds automatically next time you run/recompile. The one minor
11 :: exception is *.pdb, since windows and a lot of developer tools include PDB sets to assist in
12 :: application debugging (however these files are by no means required by any software).
13
14 del /s "%~dp0\*.ncb"
15 del /s "%~dp0\*.obj"
16 del /s "%~dp0\bin\*.ilk"
17 del /s "%~dp0\*.idb"
18 del /s "%~dp0\*.bsc"
19 del /s "%~dp0\*.sbr"
20 del /s "%~dp0\*.pch"
21 del /s "%~dp0\*.pdb"
22
23 del /s /q "%~dp0\deps"
24
25 :: These two can't be used currently because they match unwanted 4+ letter extensions, such
26 :: as *.resx and *.tmpl ... wow, stupid. >_<
27
28 :: del /s "%~dp0\*.tmp"
29 :: del /s "%~dp0\*.res"

  ViewVC Help
Powered by ViewVC 1.1.22