summaryrefslogtreecommitdiff
path: root/ruby_1_8_6/win32/ifchange.bat
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-07 07:38:25 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-07 07:38:25 +0000
commit9ff1e787f915539b1980654e3d3d2013ff5c81d2 (patch)
tree8d0fc9ca5b4dbfa9885dc56862292d55091bcaac /ruby_1_8_6/win32/ifchange.bat
parent441546edcfbb1b346c87b69c5f578d1a0e522e06 (diff)
wrong commit; sorryv1_8_6_269
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_6_269@17938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_1_8_6/win32/ifchange.bat')
-rwxr-xr-xruby_1_8_6/win32/ifchange.bat32
1 files changed, 0 insertions, 32 deletions
diff --git a/ruby_1_8_6/win32/ifchange.bat b/ruby_1_8_6/win32/ifchange.bat
deleted file mode 100755
index 4fca646ea2..0000000000
--- a/ruby_1_8_6/win32/ifchange.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-@echo off
-:: usage: ifchange target temporary
-
-:: check if fc.exe works.
-echo foo > conftest1.tmp
-echo bar > conftest2.tmp
-fc.exe conftest1.tmp conftest2.tmp > nul
-if not errorlevel 1 goto :brokenfc
-del conftest1.tmp > nul
-del conftest2.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
-
-: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
-copy %2 %1 > nul
-:end