summaryrefslogtreecommitdiffstats
path: root/win/rmd.bat
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2001-11-10 10:38:47 (GMT)
committerdavygrvy <davygrvy@pobox.com>2001-11-10 10:38:47 (GMT)
commit801283c38e66a43623f1b09a8c6baaf2a7277dab (patch)
treee17441a16f9fbafdfa202900eb474a3f5073d911 /win/rmd.bat
parent4801a4a703fd7faff54f4361646cd421880b8396 (diff)
downloadtcl-801283c38e66a43623f1b09a8c6baaf2a7277dab.zip
tcl-801283c38e66a43623f1b09a8c6baaf2a7277dab.tar.gz
tcl-801283c38e66a43623f1b09a8c6baaf2a7277dab.tar.bz2
* win/makefile.vc: Added a check to make sure one runs the makefile
from the /win directory only. * win/mkd.bat: * win/rmd.bat: Changes from Llyod Lim for better stability. [Patch #456759]
Diffstat (limited to 'win/rmd.bat')
-rw-r--r--win/rmd.bat16
1 files changed, 5 insertions, 11 deletions
diff --git a/win/rmd.bat b/win/rmd.bat
index f1fa10c..c4d154f 100644
--- a/win/rmd.bat
+++ b/win/rmd.bat
@@ -1,27 +1,21 @@
@echo off
-rem RCS: @(#) $Id: rmd.bat,v 1.7 2001/09/08 23:52:02 davygrvy Exp $
+rem RCS: @(#) $Id: rmd.bat,v 1.8 2001/11/10 10:38:47 davygrvy Exp $
-if not exist %1\. goto end
+if not exist %1\nul goto end
echo Removing directory %1
if "%OS%" == "Windows_NT" goto winnt
-cd %1
-if errorlevel 1 goto end
-del *.*
-cd ..
-rmdir %1
+deltree /y %1
if errorlevel 1 goto end
goto success
:winnt
-rmdir %1 /s /q
+rmdir /s /q %1
if errorlevel 1 goto end
:success
-echo deleted directory %1
+echo Deleted directory %1
:end
-
-