summaryrefslogtreecommitdiffstats
path: root/BUILD/VS2008X/clean.bat
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:21:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:21:21 +0000
commit510ed32cfbffa6148018869f5ade416505a450b3 (patch)
tree0aafabcf3dfaab7685fa0fcbaa683dafe287807e /BUILD/VS2008X/clean.bat
parentInitial commit. (diff)
downloadlynx-510ed32cfbffa6148018869f5ade416505a450b3.tar.xz
lynx-510ed32cfbffa6148018869f5ade416505a450b3.zip
Adding upstream version 2.9.0rel.0.upstream/2.9.0rel.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'BUILD/VS2008X/clean.bat')
-rw-r--r--BUILD/VS2008X/clean.bat41
1 files changed, 41 insertions, 0 deletions
diff --git a/BUILD/VS2008X/clean.bat b/BUILD/VS2008X/clean.bat
new file mode 100644
index 0000000..7b11001
--- /dev/null
+++ b/BUILD/VS2008X/clean.bat
@@ -0,0 +1,41 @@
+@echo off
+@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 *.old
+del/f/s/q *.suo
+del/f/s/q *.sdf
+del/f/s/q *.user
+del/f/s/q *.xml
+
+attrib +r *.h /s
+attrib +r *.bat /s
+attrib +r *.sln /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