Permalink
Browse files

[build-emacs-functions] Don't continue with the build if stuff fails

  • Loading branch information...
1 parent 410bd71 commit 45da1b59c58e96a09a19faa469ef3735ffae6222 @caldwell committed Aug 12, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 build-emacs-functions
View
@@ -28,13 +28,14 @@ function build_an_emacs() {
HOST="$3"
MIN_OS="$4"
MESSAGE="$OUT failed to build ($ARCH)"
- (cd $SRC && test -f ./configure || ./autogen.sh || ./autogen/copy_autogen)
+ (cd $SRC && test -f ./configure || ./autogen.sh || ./autogen/copy_autogen) &&
(cd $SRC && env CC="$GCC -mmacosx-version-min=$MIN_OS" ./configure --host=$HOST --build=i686-apple-darwin --with-ns &&
- env CC="$GCC -mmacosx-version-min=$MIN_OS" make clean install)
+ env CC="$GCC -mmacosx-version-min=$MIN_OS" make clean install) &&
- mkdir "$SRC/nextstep/$ARCH"
- mv "$SRC/nextstep/Emacs.app" "$SRC/nextstep/$ARCH/Emacs.app"
- BUILT[${#BUILT[@]}]="$SRC/nextstep/$ARCH/Emacs.app"
+ rm -rf "$SRC/nextstep/$ARCH" &&
+ mkdir "$SRC/nextstep/$ARCH" &&
+ mv "$SRC/nextstep/Emacs.app" "$SRC/nextstep/$ARCH/Emacs.app" &&
+ BUILT[${#BUILT[@]}]="$SRC/nextstep/$ARCH/Emacs.app" &&
KIND[${#KIND[@]}]="$ARCH"
}

0 comments on commit 45da1b5

Please sign in to comment.