diff options
author | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2016-08-02 16:29:44 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-08-04 18:19:46 +0200 |
commit | 188517144e779086355d2ac287944e23af54d024 (patch) | |
tree | bb4d3fb33e08430dcf3c6763a79da621cafea7fa | |
parent | 877168993a654027acc72c76c8a9d81473520fdb (diff) | |
download | upstream-188517144e779086355d2ac287944e23af54d024.tar.gz upstream-188517144e779086355d2ac287944e23af54d024.tar.bz2 upstream-188517144e779086355d2ac287944e23af54d024.zip |
tools: lzma: reduce copyright noise
Move the copyright printing code to the usage printing function, to
reduce noise from regular execution but preserve information about
the author.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
-rw-r--r-- | tools/lzma/patches/101-move-copyright-to-usage-info.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/lzma/patches/101-move-copyright-to-usage-info.patch b/tools/lzma/patches/101-move-copyright-to-usage-info.patch new file mode 100644 index 0000000000..ec69285d8e --- /dev/null +++ b/tools/lzma/patches/101-move-copyright-to-usage-info.patch @@ -0,0 +1,20 @@ +--- a/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp ++++ b/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp +@@ -101,6 +101,8 @@ static const int kNumSwitches = sizeof(k + + static void PrintHelp() + { ++ fprintf(stderr, "\nLZMA " MY_VERSION_COPYRIGHT_DATE "\n"); ++ + fprintf(stderr, "\nUsage: LZMA <e|d> inputFile outputFile [<switches>...]\n" + " e: encode file\n" + " d: decode file\n" +@@ -168,8 +170,6 @@ int main2(int n, const char *args[]) + g_IsNT = IsItWindowsNT(); + #endif + +- fprintf(stderr, "\nLZMA " MY_VERSION_COPYRIGHT_DATE "\n"); +- + if (n == 1) + { + PrintHelp(); |