* bootstrap: Add missings functions.
---
ChangeLog | 6 ++++++
bootstrap | 28 +++++++++++++++++++++++++---
milena/ChangeLog | 2 +-
3 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e385329..dc72c90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-11-20 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Fix bootstrap.
+
+ * bootstrap: Add missings functions.
+
+2008-11-20 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Generate unit test files on bootstrap.
* bootstrap: generate unit test files.
diff --git a/bootstrap b/bootstrap
index 75befde..575c158 100755
--- a/bootstrap
+++ b/bootstrap
@@ -7,6 +7,11 @@ fatal ()
exit 1
}
+stderr ()
+{
+ echo >&2 "$0: $@"
+}
+
awk_strverscmp='
# Use only awk features that work with 7th edition Unix awk (1978).
# My, what an old awk you have, Mr. Solaris!
@@ -87,6 +92,23 @@ require ()
esac
}
+# run DIRECTORY COMMAND-LINE
+# --------------------------
+# "set -e" doesn't work for subshells!
+run ()
+{
+ (
+ stderr "$@"
+ cd "$1"
+ shift
+ if ! "$@"; then
+ fatal "unexpected failure: $@"
+ exit 1
+ fi
+ )
+}
+
+
# Failures do matter.
set -e
@@ -94,11 +116,11 @@ set -e
require autoconf 2.59
require automake 1.9.4
+# Generate unit test files.
+run milena/tests/unit_test ./build_unit_test.sh
+
# Tell what's going on.
set -x
-# Generate unit test files.
-run milena/tests/unit_tests build_unit_test.sh
-
# Install the GNU Build System.
autoreconf -f -v -i
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 2c59824..7669b73 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -23,7 +23,7 @@
* tests/morpho/Makefile.am: Update.
* mln/canvas/morpho/all.hh: Upgrade doc style.
-2008-11-20 Guillaume Lazzara <z(a)lrde.epita.fr>
+2008-11-21 Guillaume Lazzara <z(a)lrde.epita.fr>
Add new from_to overloads.
--
1.5.6.5