diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
commit | d0233291bc8a5068e52c69c210e5979e5324b5bc (patch) | |
tree | 7d9459449c33792c63eeb7baa071e76352e0baab /trunk/win32/ifchange.bat | |
parent | 0dc342de848a642ecce8db697b8fecd83a63e117 (diff) | |
parent | 72eaacaa15256ab95c3b52ea386f88586fb9da40 (diff) |
re-adding tag v1_9_0_4 as an alias of trunk@18848v1_9_0_4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'trunk/win32/ifchange.bat')
-rwxr-xr-x | trunk/win32/ifchange.bat | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/trunk/win32/ifchange.bat b/trunk/win32/ifchange.bat deleted file mode 100755 index 8411099020..0000000000 --- a/trunk/win32/ifchange.bat +++ /dev/null @@ -1,59 +0,0 @@ -@echo off
-:: usage: ifchange target temporary
-
-if "%1" == "" goto :end
-
-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
-
-: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
-dir /b %2
-copy %2 %1
-del %2
-goto :end
-
-:nt
-if not exist %src% goto :end
-if exist %dest% (
- fc.exe %dest% %src% > nul && (
- echo %dest% unchanged.
- del %src%
- goto :end
- )
-)
-echo %dest% updated.
-copy %src% %dest% > nul
-del %src%
-
-:end
|