summaryrefslogtreecommitdiffstats
path: root/win/rmd.bat
diff options
context:
space:
mode:
authordavygrvy <davygrvy>2001-11-13 02:46:23 (GMT)
committerdavygrvy <davygrvy>2001-11-13 02:46:23 (GMT)
commit4d34483032bd741ce8176da8741a9043f108c557 (patch)
treeb2decec62d7ea77624953201fe82badde9f0f4d3 /win/rmd.bat
parent43c95b5b9d04b14721d663d07c8183b08fd27ac3 (diff)
downloadtk-4d34483032bd741ce8176da8741a9043f108c557.zip
tk-4d34483032bd741ce8176da8741a9043f108c557.tar.gz
tk-4d34483032bd741ce8176da8741a9043f108c557.tar.bz2
* win/mkd.bat:
* win/rmd.bat: Removed -kb CVS attribute and added changes from Llyod Lim for better stability. [Patch #456761] * win/rules.vc(new): * win/buildall.vc.bat(new): * win/makefile.vc: large rewrite following Tcl's makefile.vc as a guide and Patch #456761. Appears BugFree(tm).
Diffstat (limited to 'win/rmd.bat')
-rw-r--r--win/rmd.bat47
1 files changed, 21 insertions, 26 deletions
diff --git a/win/rmd.bat b/win/rmd.bat
index 2669f37..6811b9e 100644
--- a/win/rmd.bat
+++ b/win/rmd.bat
@@ -1,26 +1,21 @@
-@echo off
-rem RCS: @(#) $Id: rmd.bat,v 1.4 2001/09/08 22:34:42 mdejong Exp $
-
-if not exist %1\tag.txt goto end
-
-echo Removing directory %1
-
-if "%OS%" == "Windows_NT" goto winnt
-
-cd %1
-if errorlevel 1 goto end
-del *.*
-cd ..
-rmdir %1
-if errorlevel 1 goto end
-goto success
-
-:winnt
-rmdir %1 /s /q
-if errorlevel 1 goto end
-
-:success
-echo deleted directory %1
-
-:end
-
+@echo off
+rem RCS: @(#) $Id: rmd.bat,v 1.5 2001/11/13 02:46:23 davygrvy Exp $
+
+if not exist %1\nul goto end
+
+echo Removing directory %1
+
+if "%OS%" == "Windows_NT" goto winnt
+
+deltree /y %1
+if errorlevel 1 goto end
+goto success
+
+:winnt
+rmdir /s /q %1
+if errorlevel 1 goto end
+
+:success
+echo Deleted directory %1
+
+:end