From fb2274ab949118ed891f94a23e54c66eb9c240e0 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 18 Feb 2014 11:14:25 +0000 Subject: [PATCH] Properly return 1 in case of error --- pkgs/tinyxlib | 4 ++-- pkgs/tinyxserver | 4 ++-- pkgs/uuterm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tinyxlib b/pkgs/tinyxlib index d446898..2ae1680 100644 --- a/pkgs/tinyxlib +++ b/pkgs/tinyxlib @@ -14,12 +14,12 @@ build() { cd src/tinyxlib make clean make CC=x86_64-linux-musl-gcc BINDIR="/bin" LIBDIR="/lib" STATIC=1 \ - FONT_ENCODINGS_DIRECTORY="/usr/share/fonts/encodings/encodings.dir" + FONT_ENCODINGS_DIRECTORY="/usr/share/fonts/encodings/encodings.dir" || return 1 cd - } install() { cd src/tinyxlib - make DESTDIR="$libcroot" BINDIR="/bin" LIBDIR="/lib" STATIC=1 install + make DESTDIR="$libcroot" BINDIR="/bin" LIBDIR="/lib" STATIC=1 install || return 1 cd - } diff --git a/pkgs/tinyxserver b/pkgs/tinyxserver index d68b6fa..f1a56ec 100644 --- a/pkgs/tinyxserver +++ b/pkgs/tinyxserver @@ -15,13 +15,13 @@ build() { make clean make CC=x86_64-linux-musl-gcc EXTRA_CFLAGS="-D_XSERVER64=1 -I$libcroot/include" \ LDFLAGS="-static -L$libcroot/lib" \ - FONTDIR="/usr/share/fonts" + FONTDIR="/usr/share/fonts" || return 1 cd - } install() { cd src/tinyxserver - make DESTDIR="$root" BINDIR="/bin" install + make DESTDIR="$root" BINDIR="/bin" install || return 1 cd - cd $root/usr/share/fonts/misc mkfontscale diff --git a/pkgs/uuterm b/pkgs/uuterm index eb5ca24..2dfda90 100644 --- a/pkgs/uuterm +++ b/pkgs/uuterm @@ -12,7 +12,7 @@ unpack() { build() { cd src/uuterm - make CC=x86_64-linux-musl-gcc LDFLAGS_X11="-L$libcroot/lib -static" uuterm-x11 + make CC=x86_64-linux-musl-gcc LDFLAGS_X11="-L$libcroot/lib -static" uuterm-x11 || return 1 cd - }