From 6eacf476f0b837f2a78b7d47e7f9a6f2caf00a56 Mon Sep 17 00:00:00 2001 From: bojar Date: Thu, 15 Feb 2007 01:49:37 +0000 Subject: [PATCH] Die if aclocal, autoconf or automake fail. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1213 1f5c12ca-751b-0410-a591-d2e778427230 --- irstlm/regenerate-makefiles.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/irstlm/regenerate-makefiles.sh b/irstlm/regenerate-makefiles.sh index ae40a7a32..ba5e8b693 100755 --- a/irstlm/regenerate-makefiles.sh +++ b/irstlm/regenerate-makefiles.sh @@ -1,11 +1,16 @@ -#!/bin/sh +#!/bin/bash + +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:"