aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--build2/buildfile2
-rw-r--r--build2/version/utility.cxx6
-rw-r--r--buildfile10
-rw-r--r--tests/cc/libu/buildfile2
-rw-r--r--tests/cc/modules/buildfile2
-rw-r--r--tests/cc/preprocessed/buildfile2
-rw-r--r--tests/function/builtin/buildfile2
-rw-r--r--tests/function/filesystem/buildfile2
-rw-r--r--tests/function/install/buildfile2
-rw-r--r--tests/function/path/buildfile2
-rw-r--r--tests/function/regex/buildfile2
-rw-r--r--tests/search/dir/buildfile2
-rw-r--r--tests/test/config-test/buildfile2
-rw-r--r--tests/test/script/generated/buildfile2
-rw-r--r--tests/test/script/integration/buildfile2
-rw-r--r--tests/test/simple/generated/buildfile2
-rw-r--r--tests/variable/override/buildfile2
-rw-r--r--tests/variable/prerequisite-specific/buildfile2
-rw-r--r--tests/variable/scope-specific/buildfile2
-rw-r--r--tests/variable/target-specific/buildfile2
21 files changed, 22 insertions, 34 deletions
diff --git a/.gitignore b/.gitignore
index 065eae7..7a6b7af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,7 +15,3 @@
*.pc
INSTALL
-
-# Generated version.
-#
-version
diff --git a/build2/buildfile b/build2/buildfile
index e31008f..6f19c5d 100644
--- a/build2/buildfile
+++ b/build2/buildfile
@@ -11,7 +11,7 @@ libu{b}: {hxx ixx txx cxx}{** -b -b-options -version} \
{hxx ixx cxx}{b-options} {hxx}{version} \
$libs
-hxx{version}: in{version} $src_root/file{manifest}
+hxx{version}: in{version} $src_root/manifest
# Pass our compiler target to be used as build2 host.
#
diff --git a/build2/version/utility.cxx b/build2/version/utility.cxx
index 8211e85..0f8ea86 100644
--- a/build2/version/utility.cxx
+++ b/build2/version/utility.cxx
@@ -60,18 +60,18 @@ namespace build2
catch (const manifest_parsing& e)
{
location l (&in, e.line, e.column);
- fail (l) << e.description;
+ fail (l) << e.description << endf;
}
catch (const manifest_serialization& e)
{
location l (&r.path);
- fail (l) << e.description;
+ fail (l) << e.description << endf;
}
catch (const io_error& e)
{
fail << "io error: " << e <<
info << "while reading " << in <<
- info << "while writing " << r.path;
+ info << "while writing " << r.path << endf;
}
}
}
diff --git a/buildfile b/buildfile
index 38c95ce..452b660 100644
--- a/buildfile
+++ b/buildfile
@@ -3,17 +3,9 @@
# license : MIT; see accompanying LICENSE file
./: {*/ -build/ -config/ -old-tests/} \
- doc{INSTALL LICENSE NEWS README version} \
+ doc{INSTALL LICENSE NEWS README} \
file{INSTALL.cli bootstrap* config.guess config.sub} manifest
-# The version file is auto-generated (by the version module) from manifest.
-# Include it in distribution and don't remove when cleaning in src (so that
-# clean results in a state identical to distributed).
-#
-doc{version}: file{manifest}
-doc{version}: dist = true
-doc{version}: clean = ($src_root != $out_root)
-
# Don't install tests or the INSTALL file.
#
dir{tests/}: install = false
diff --git a/tests/cc/libu/buildfile b/tests/cc/libu/buildfile
index 104a645..e7efc2a 100644
--- a/tests/cc/libu/buildfile
+++ b/tests/cc/libu/buildfile
@@ -5,4 +5,4 @@
# Test utility library support.
#
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/cc/modules/buildfile b/tests/cc/modules/buildfile
index 58caf92..b83d549 100644
--- a/tests/cc/modules/buildfile
+++ b/tests/cc/modules/buildfile
@@ -5,4 +5,4 @@
# Test C++ modules support.
#
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/cc/preprocessed/buildfile b/tests/cc/preprocessed/buildfile
index ac6bcdf..bb5d6ab 100644
--- a/tests/cc/preprocessed/buildfile
+++ b/tests/cc/preprocessed/buildfile
@@ -5,4 +5,4 @@
# Test {c, cxx}.preprocessed logic.
#
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/function/builtin/buildfile b/tests/function/builtin/buildfile
index 0c38e38..903860b 100644
--- a/tests/function/builtin/buildfile
+++ b/tests/function/builtin/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/function/filesystem/buildfile b/tests/function/filesystem/buildfile
index ade9a68..b41344f 100644
--- a/tests/function/filesystem/buildfile
+++ b/tests/function/filesystem/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/function/install/buildfile b/tests/function/install/buildfile
index 356ca77..afc729f 100644
--- a/tests/function/install/buildfile
+++ b/tests/function/install/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/function/path/buildfile b/tests/function/path/buildfile
index 5c2ede2..b6fb6b2 100644
--- a/tests/function/path/buildfile
+++ b/tests/function/path/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/function/regex/buildfile b/tests/function/regex/buildfile
index fbac223..b63f64a 100644
--- a/tests/function/regex/buildfile
+++ b/tests/function/regex/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/search/dir/buildfile b/tests/search/dir/buildfile
index 03afc85..07c2f3e 100644
--- a/tests/search/dir/buildfile
+++ b/tests/search/dir/buildfile
@@ -5,4 +5,4 @@
# Test loading of dir{} buildfiles during target search.
#
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/test/config-test/buildfile b/tests/test/config-test/buildfile
index d86914f..909f8f2 100644
--- a/tests/test/config-test/buildfile
+++ b/tests/test/config-test/buildfile
@@ -5,6 +5,6 @@
# Test config.test.
#
-./: test{testscript} exe{driver} $b
+./: testscript exe{driver} $b
exe{driver}: {hxx cxx}{*}
diff --git a/tests/test/script/generated/buildfile b/tests/test/script/generated/buildfile
index 524be44..6922afc 100644
--- a/tests/test/script/generated/buildfile
+++ b/tests/test/script/generated/buildfile
@@ -5,4 +5,4 @@
# Test generated testscripts.
#
-./: test{testscript} $b file{*.in}
+./: testscript $b file{*.in}
diff --git a/tests/test/script/integration/buildfile b/tests/test/script/integration/buildfile
index 1cc1e30..f3cfb65 100644
--- a/tests/test/script/integration/buildfile
+++ b/tests/test/script/integration/buildfile
@@ -5,4 +5,4 @@
# Test integration of testscript into build system.
#
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/test/simple/generated/buildfile b/tests/test/simple/generated/buildfile
index 2d795a8..1ff8396 100644
--- a/tests/test/simple/generated/buildfile
+++ b/tests/test/simple/generated/buildfile
@@ -5,6 +5,6 @@
# Test generated test inputs/outputs.
#
-./: test{testscript} exe{driver} $b file{*.in}
+./: testscript exe{driver} $b file{*.in}
exe{driver}: cxx{driver}
diff --git a/tests/variable/override/buildfile b/tests/variable/override/buildfile
index 5831ecd..6cd339f 100644
--- a/tests/variable/override/buildfile
+++ b/tests/variable/override/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/variable/prerequisite-specific/buildfile b/tests/variable/prerequisite-specific/buildfile
index e16519c..dc017c1 100644
--- a/tests/variable/prerequisite-specific/buildfile
+++ b/tests/variable/prerequisite-specific/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/variable/scope-specific/buildfile b/tests/variable/scope-specific/buildfile
index 2f3de77..81a8158 100644
--- a/tests/variable/scope-specific/buildfile
+++ b/tests/variable/scope-specific/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b
diff --git a/tests/variable/target-specific/buildfile b/tests/variable/target-specific/buildfile
index 5a8178b..5ae03b0 100644
--- a/tests/variable/target-specific/buildfile
+++ b/tests/variable/target-specific/buildfile
@@ -2,4 +2,4 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-./: test{testscript} $b
+./: testscript $b