diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-02-15 04:50:26 +0300 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-02-15 04:50:26 +0300 |
commit | 2f4c70b4ae51634e6078a5ac45b6159dcb9d2f21 (patch) | |
tree | 4742a6cf163292fcdadfd278a37fa4747c60eb9b /regenerate-makefiles.sh | |
parent | 6eacf476f0b837f2a78b7d47e7f9a6f2caf00a56 (diff) |
Die if aclocal, autoconf or automake fail
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1214 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regenerate-makefiles.sh')
-rwxr-xr-x | regenerate-makefiles.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/regenerate-makefiles.sh b/regenerate-makefiles.sh index c1fb8522f..75d48e86b 100755 --- a/regenerate-makefiles.sh +++ b/regenerate-makefiles.sh @@ -1,11 +1,16 @@ #!/bin/sh +function die () { + echo "$@" >&2 + exit 1 +} + echo "Calling aclocal..." -aclocal +aclocal || die "aclocal failed" echo "Calling autoconf..." -autoconf +autoconf || die "autoconf failed" echo "Calling automake..." -automake +automake || die "automake failed" echo echo "You should now be able to configure and build:" |