aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-23 17:41:12 +0000
committerlloyd <[email protected]>2009-11-23 17:41:12 +0000
commit9a5f77d29bb28761d1053b47fb91dafc4b7bda6f (patch)
tree167ccbd4380862188b7a1809ef2b8269854fb30f /src/build-data
parent97e63a94db0e2252d2fcf8b221910a69396ebc13 (diff)
Don't do line ending conversion on build.h since that was (presumably/usually)
written out by the local Python using Win32 line endings.
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/innosetup.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/build-data/innosetup.in b/src/build-data/innosetup.in
index fa3a5e656..368d74824 100644
--- a/src/build-data/innosetup.in
+++ b/src/build-data/innosetup.in
@@ -49,10 +49,13 @@ procedure ConvertLineEndings();
LF : String;
CRLF : String;
begin
- LF := #10;
- CR := #13;
- CRLF := CR + LF;
- LoadStringFromFile(ExpandConstant(CurrentFileName), FileContents);
- StringChangeEx(FileContents, LF, CRLF, False);
- SaveStringToFile(ExpandConstant(CurrentFileName), FileContents, False);
+ if ExtractFileName(CurrentFileName) <> 'build.h' then
+ begin
+ LF := #10;
+ CR := #13;
+ CRLF := CR + LF;
+ LoadStringFromFile(ExpandConstant(CurrentFileName), FileContents);
+ StringChangeEx(FileContents, LF, CRLF, False);
+ SaveStringToFile(ExpandConstant(CurrentFileName), FileContents, False);
+ end;
end;