From d6f55492af3cb82b0113fe6beac0f3494b6e2956 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Thu, 18 Feb 2010 19:25:56 +0000 Subject: Make mklib propogate all errors Signed-off-by: Jon TURNEY Signed-off-by: Brian Paul --- bin/mklib | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/mklib b/bin/mklib index 2ef902287d2..68d22052c94 100755 --- a/bin/mklib +++ b/bin/mklib @@ -24,6 +24,12 @@ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# propagate any errors +function errtrap { + es=$? + exit $es +} +trap errtrap ERR # Given a list of files, look for .a archives and unpack them. # Return the original list of files minus the .a files plus the unpacked files. -- cgit v1.2.3