Created
July 9, 2012 19:15
-
-
Save valtoni/3078319 to your computer and use it in GitHub Desktop.
[DOS] Patchin any directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set ACTUAL_DIR=%CD% | |
set TEMPFILE=%TEMP%\temp.patch | |
echo "Executando diff" | |
diff -uNr --exclude=".svn" %1 %2 > %TEMPFILE% | |
echo "Patcheando destino" | |
cd %2 | |
patch -R -i %TEMPFILE% | |
echo "Apagando arquivo %TEMPFILE%" | |
del %TEMPFILE% | |
echo "Ending..." | |
cd %ACTUAL_DIR% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment