diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-25 09:35:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-25 09:35:03 (GMT) |
commit | 05ac0f2232ca66e87c18bf4a43cce9d0cfaa7596 (patch) | |
tree | ec9c17a36b01ac33cdfa62c7120da1b152b55777 /win/rmd.bat | |
parent | db72cf3cd352c43ddcb5abcb300f60aea2df558f (diff) | |
parent | 69cded06b737884b3c2f111d3a3a40db146bcef1 (diff) | |
download | tk-05ac0f2232ca66e87c18bf4a43cce9d0cfaa7596.zip tk-05ac0f2232ca66e87c18bf4a43cce9d0cfaa7596.tar.gz tk-05ac0f2232ca66e87c18bf4a43cce9d0cfaa7596.tar.bz2 |
Fix bug in "make dist" when system-encoding is UTF-8: eolFix will then translate some windows-specific files to UTF-8 too.
Solution: commit those files with CRLF line-ending, which eliminates the need for eolFix altgether.
See als: [495120] for the reason why eolFix was introduced in the first place. No longer needed with fossil.
Diffstat (limited to 'win/rmd.bat')
-rw-r--r-- | win/rmd.bat | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/win/rmd.bat b/win/rmd.bat index d260936..820b76f 100644 --- a/win/rmd.bat +++ b/win/rmd.bat @@ -1,20 +1,20 @@ -@echo off - -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 +@echo off
+
+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
|