diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-25 09:29:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-06-25 09:29:27 (GMT) |
commit | 69cded06b737884b3c2f111d3a3a40db146bcef1 (patch) | |
tree | a712a1d0ed4fdaf363c769fe7822df702532704f /win/rmd.bat | |
parent | 4d1a9f685c22275463128aabb1142f5c97bee2e5 (diff) | |
download | tk-69cded06b737884b3c2f111d3a3a40db146bcef1.zip tk-69cded06b737884b3c2f111d3a3a40db146bcef1.tar.gz tk-69cded06b737884b3c2f111d3a3a40db146bcef1.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
|