Last change
on this file since 7429 was
7019,
checked in by spimming, 13 years ago
|
#1680: manage multiple app.config files with pre-build event
|
File size:
415 bytes
|
Line | |
---|
1 | @echo off
|
---|
2 | echo Comparing two files: %1 with %2
|
---|
3 |
|
---|
4 | if not exist %1 goto File1NotFound
|
---|
5 | if not exist %2 goto File2NotFound
|
---|
6 |
|
---|
7 | fc %1 %2
|
---|
8 | if %ERRORLEVEL%==0 GOTO NoCopy
|
---|
9 |
|
---|
10 | echo Files are not the same. Copying %1 over %2
|
---|
11 | copy %1 %2 /y & goto END
|
---|
12 |
|
---|
13 | :NoCopy
|
---|
14 | echo Files are the same. Did nothing
|
---|
15 | goto END
|
---|
16 |
|
---|
17 | :File1NotFound
|
---|
18 | echo %1 not found.
|
---|
19 | goto END
|
---|
20 |
|
---|
21 | :File2NotFound
|
---|
22 | copy %1 %2 /y
|
---|
23 | goto END
|
---|
24 |
|
---|
25 | :END
|
---|
26 | echo Done. |
---|
Note: See
TracBrowser
for help on using the repository browser.