From 84f6ebab62a9f2553ae454d67861b0b142470d0b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 25 Jul 2018 20:11:47 +0300 Subject: Move bpkg::package_name class to butl::project_name --- tests/standard-version/buildfile | 2 +- tests/standard-version/driver.cxx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/standard-version') diff --git a/tests/standard-version/buildfile b/tests/standard-version/buildfile index 8e8ded6..7ae054e 100644 --- a/tests/standard-version/buildfile +++ b/tests/standard-version/buildfile @@ -1,4 +1,4 @@ -# file : tests/tab-parser/buildfile +# file : tests/standard-version/buildfile # copyright : Copyright (c) 2014-2018 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx index 3bc1d31..7ad5b00 100644 --- a/tests/standard-version/driver.cxx +++ b/tests/standard-version/driver.cxx @@ -18,7 +18,7 @@ import std.core; import std.io; #endif -import butl.utility; // operator<<(ostream,exception) +import butl.utility; // operator<<(ostream,exception), eof() import butl.standard_version; #else #include @@ -124,11 +124,11 @@ version (const string& s, // -a output 'y' for alpha-version, 'n' otherwise // -b output 'y' for beta-version, 'n' otherwise // -c output 0 if versions are equal, -1 if the first one is less, 1 otherwise -// -r create version constraints from STDIN lines, and print them to STDOUT +// -r create version constraints from stdin lines, and print them to stdout // -s output 'y' if version satisfies constraint, 'n' otherwise // -// If no options are specified, then create versions from STDIN lines, and -// print them to STDOUT. +// If no options are specified, then create versions from stdin lines, and +// print them to stdout. // int main (int argc, char* argv[]) @@ -186,7 +186,7 @@ try } string s; - while (getline (cin, s)) + while (!eof (getline (cin, s))) cout << (s.empty () ? standard_version () : version (s)) << endl; return 0; -- cgit v1.1