tools: lzma: reduce copyright noise
[openwrt/staging/chunkeey.git] / tools / lzma / patches / 101-move-copyright-to-usage-info.patch
1 --- a/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp
2 +++ b/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp
3 @@ -101,6 +101,8 @@ static const int kNumSwitches = sizeof(k
4
5 static void PrintHelp()
6 {
7 + fprintf(stderr, "\nLZMA " MY_VERSION_COPYRIGHT_DATE "\n");
8 +
9 fprintf(stderr, "\nUsage: LZMA <e|d> inputFile outputFile [<switches>...]\n"
10 " e: encode file\n"
11 " d: decode file\n"
12 @@ -168,8 +170,6 @@ int main2(int n, const char *args[])
13 g_IsNT = IsItWindowsNT();
14 #endif
15
16 - fprintf(stderr, "\nLZMA " MY_VERSION_COPYRIGHT_DATE "\n");
17 -
18 if (n == 1)
19 {
20 PrintHelp();