diff --git a/utils/tail.cpp b/utils/tail.cpp index cafa752a..973a0fa1 100644 --- a/utils/tail.cpp +++ b/utils/tail.cpp @@ -27,6 +27,10 @@ #include #include +#if !defined(VERSIONSTR) +#define VERSIONSTR "unknown version" +#endif + #ifdef HEAD #define TAIL false #else @@ -123,7 +127,11 @@ void help(const char* argv0) void version(const char* argv0) { - printf("%s (sortix)\n", argv0); + FILE* fp = stdout; + fprintf(fp, "%s (Sortix) %s\n", argv0, VERSIONSTR); + fprintf(fp, "License GPLv3+: GNU GPL version 3 or later .\n"); + fprintf(fp, "This is free software: you are free to change and redistribute it.\n"); + fprintf(fp, "There is NO WARRANTY, to the extent permitted by law.\n"); } int main(int argc, char* argv[])