Commit a476aa69 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix bootstrap.

	* bootstrap: Add missings functions.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@2940 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 4f1f5c36
2008-11-20 Guillaume Lazzara <z@lrde.epita.fr>
Fix bootstrap.
* bootstrap: Add missings functions.
2008-11-20 Guillaume Lazzara <z@lrde.epita.fr>
Generate unit test files on 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
......@@ -23,7 +23,7 @@
* tests/morpho/Makefile.am: Update.
* mln/canvas/morpho/all.hh: Upgrade doc style.
 
2008-11-20 Guillaume Lazzara <z@lrde.epita.fr>
2008-11-21 Guillaume Lazzara <z@lrde.epita.fr>
 
Add new from_to overloads.
 
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment