Skip to content

Instantly share code, notes, and snippets.

@valtoni
Created July 9, 2012 19:15
Show Gist options
  • Save valtoni/3078319 to your computer and use it in GitHub Desktop.
Save valtoni/3078319 to your computer and use it in GitHub Desktop.
[DOS] Patchin any directory
@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