Hi, I've been compiling OpenTTD from the sources with each OpenTTD version for few years now and each time I used:
patch -p0 -i Diff.file
but now it doesn't seem to work any more.
It gives the following output:
au@howth:~/tmp/openttd-1.8.0$ patch -p0 -i BTPro_Client_1.8.0_B_180002_git.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/projects/generate_vs100.vcxproj b/projects/generate_vs100.vcxproj
|index 4417308..84f8f59 100644
|--- a/projects/generate_vs100.vcxproj
|+++ b/projects/generate_vs100.vcxproj
--------------------------
File to patch:
There have been obviously some changes with OpenTTD development being moved to Git. But so far I didn't find out how to apply BTPro Client patch. Any idea? I also tried "git apply" but it gives the following:
au@howth:~/tmp/openttd-1.8.0$ git apply BTPro_Client_1.8.0_B_180002_git.diff
BTPro_Client_1.8.0_B_180002_git.diff:583: trailing whitespace.
/*
BTPro_Client_1.8.0_B_180002_git.diff:614: trailing whitespace.
static const std::string base64_chars =
BTPro_Client_1.8.0_B_180002_git.diff:985: trailing whitespace.
NWidget(WWT_EMPTY, COLOUR_GREY, WID_CT_INCOME),SetMinimalSize(108, 0),SetFill(1, 0), SetPadding(2,2,2,2), SetResize(1, 1),
BTPro_Client_1.8.0_B_180002_git.diff:1164: trailing whitespace.
case NIC_TOKEN_WEBSITE:
BTPro_Client_1.8.0_B_180002_git.diff:1168: trailing whitespace.
case NIC_TOKEN_WIKI:
error: patch failed: projects/settingsgen_vs100.vcxproj:1
error: projects/settingsgen_vs100.vcxproj: patch does not apply