summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-09 06:31:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-09 06:31:11 +0000
commitf4d18f524cfe6f94895d1af6325fd5d3fd3cd9c3 (patch)
tree75f9ae320aa61cd7a5995226be9a43db299893d6
parentaccd30740c0a7e5a716e04a994c44cdacf4f02c9 (diff)
ifchange.bat: drop old systems
* win32/ifchange.bat: drop support for command.com used on old systems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rwxr-xr-xwin32/ifchange.bat22
2 files changed, 6 insertions, 21 deletions
diff --git a/ChangeLog b/ChangeLog
index 1cf70635bf9..2b0aa0d57c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 9 15:31:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/ifchange.bat: drop support for command.com used on old
+ systems.
+
Thu Jun 9 15:03:35 2016 Kazuki Yamaguchi <k@rhe.jp>
* ext/openssl/extconf.rb: Check for CRYPTO_malloc() and SSL_new().
diff --git a/win32/ifchange.bat b/win32/ifchange.bat
index ed109149533..c95203181a0 100755
--- a/win32/ifchange.bat
+++ b/win32/ifchange.bat
@@ -33,34 +33,14 @@ set dest=%1
set src=%2
set dest=%dest:/=\%
set src=%src:/=\%
-if not "%dest%" == "" if not "%dest%" == "%%dest:/=\%%" goto :nt
-if not exist %2 goto :end
-
-:: check if fc.exe works.
-echo foo > conftst1.tmp
-echo bar > conftst2.tmp
-fc.exe conftst1.tmp conftst2.tmp > nul
-if not errorlevel 1 goto :brokenfc
-del conftst1.tmp > nul
-del conftst2.tmp > nul
-
-:: target does not exist or new file differs from it.
-if not exist %1 goto :update
-fc.exe %1 %2 > nul
-if errorlevel 1 goto :update
+goto :nt
:unchange
echo %1 unchanged.
del %2
goto :end
-:brokenfc
-del conftest1.tmp > nul
-del conftest2.tmp > nul
-echo FC.EXE does not work properly.
-echo assuming %1 should be changed.
-
:update
echo %1 updated.
:: if exist %1 del %1