Properly return 1 in case of error

This commit is contained in:
sin 2014-02-18 11:14:25 +00:00
parent 0745b928e3
commit fb2274ab94
3 changed files with 5 additions and 5 deletions

View File

@ -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 -
}

View File

@ -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

View File

@ -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 -
}