about summary refs log tree commit diff stats
path: root/BUILD/VS2008X/clean.bat
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-03-18 23:55:09 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-03-18 23:55:09 +0000
commit7cec919da585246a86443c57e1f04fc79cce5954 (patch)
treecafabfdfd6fce21ccbe16aa4834cd703f59863a8 /BUILD/VS2008X/clean.bat
parente86c1c8ddabde50e52019b5a00026e5e3a73b5e3 (diff)
downloadlynx-snapshots-7cec919da585246a86443c57e1f04fc79cce5954.tar.gz
snapshot of project "lynx", label v2-8-9dev_16v
Diffstat (limited to 'BUILD/VS2008X/clean.bat')
-rw-r--r--BUILD/VS2008X/clean.bat56
1 files changed, 33 insertions, 23 deletions
diff --git a/BUILD/VS2008X/clean.bat b/BUILD/VS2008X/clean.bat
index 84d35a15..7b110014 100644
--- a/BUILD/VS2008X/clean.bat
+++ b/BUILD/VS2008X/clean.bat
@@ -1,31 +1,41 @@
 @echo off

-@rem $LynxId: clean.bat,v 1.1 2007/06/30 14:16:07 tom Exp $

-@rem Remove all build-products in subdirectories, leaving only sources (and unrecognized types)

-

-del/f/s/q *.aps

-del/f/s/q *.bsc

-del/f/s/q *.dep

-del/f/s/q *.exe

-del/f/s/q *.exp

-del/f/s/q *.i

-del/f/s/q *.idb

-del/f/s/q *.ilk

-del/f/s/q *.lib

+@rem $LynxId: clean.bat,v 1.4 2018/03/18 23:12:17 tom Exp $

+@rem Remove all build-products in subdirectories, leaving only sources

+@rem (and unrecognized types)

+setlocal

+

+FOR /D %%d IN (*) DO call :dosoln %%d

+

+attrib -h *.suo /s

+

 del/f/s/q *.ncb

-del/f/s/q *.obj

-del/f/s/q *.opt

-del/f/s/q *.pch

-del/f/s/q *.pdb

-del/f/s/q *.plg

-del/f/s/q *.res

-del/f/s/q *.sbr

+del/f/s/q *.old

 del/f/s/q *.suo

-

-del/f/s/q *.manifest

+del/f/s/q *.sdf

 del/f/s/q *.user

-del/f/s/q BuildLog.htm

+del/f/s/q *.xml

 

 attrib +r *.h /s

 attrib +r *.bat /s

 attrib +r *.sln /s

-attrib +r *.vcproj /s

+attrib +r *.vcproj* /s

+endlocal

+goto :eof

+

+:dosoln

+	setlocal

+	echo Cleanup %*

+	cd %1

+

+	set SOLN=

+	FOR %%d IN ( *.sln ) DO set SOLN=%%d

+	if not "x%SOLN%"=="x" goto :dosoln2

+

+	echo ?? Not a solution directory

+	goto :dosolnx

+

+:dosoln2

+	FOR /D %%d IN (*) DO rmdir /s /q %%d

+:dosolnx

+	endlocal

+	goto :eof