From e33986d65a0a102074b8c1ed931ed8d3a4483ad3 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Tue, 18 Oct 2016 18:00:15 +0200 Subject: [PATCH] Fix build script --- bin/build_vimr.sh | 5 +++-- bin/clean_old_builds.sh | 2 ++ bin/commit_and_push_appcast.sh | 2 ++ bin/commit_and_push_tags.sh | 2 ++ bin/create_github_release.sh | 2 ++ bin/prepare_repositories.sh | 2 ++ bin/set_new_versions.sh | 2 ++ 7 files changed, 15 insertions(+), 2 deletions(-) diff --git a/bin/build_vimr.sh b/bin/build_vimr.sh index a5e77b74..51aa6f33 100755 --- a/bin/build_vimr.sh +++ b/bin/build_vimr.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + CODE_SIGN=$1 echo "### Building VimR target" @@ -17,8 +19,7 @@ rm -rf build make clean echo "### Building nvim to get the runtime folder" -make CMAKE_FLAGS="-DCUSTOM_UI=0" -make CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=/tmp/nvim" install +make CMAKE_FLAGS="-DCUSTOM_UI=0 -DCMAKE_INSTALL_PREFIX=/tmp/nvim" install cp -r /tmp/nvim/share/nvim/runtime . rm -rf build diff --git a/bin/clean_old_builds.sh b/bin/clean_old_builds.sh index b9ddb38f..fe5898b1 100755 --- a/bin/clean_old_builds.sh +++ b/bin/clean_old_builds.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + echo "### Cleaning old builds" rm -rf build diff --git a/bin/commit_and_push_appcast.sh b/bin/commit_and_push_appcast.sh index 8eac54b4..8a1481b4 100755 --- a/bin/commit_and_push_appcast.sh +++ b/bin/commit_and_push_appcast.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + BRANCH=$1 COMPOUND_VERSION=$2 IS_SNAPSHOT=$3 diff --git a/bin/commit_and_push_tags.sh b/bin/commit_and_push_tags.sh index 33eb31be..a10b3b47 100755 --- a/bin/commit_and_push_tags.sh +++ b/bin/commit_and_push_tags.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + BRANCH=$1 TAG=$2 diff --git a/bin/create_github_release.sh b/bin/create_github_release.sh index ff6fa19d..358ec53c 100755 --- a/bin/create_github_release.sh +++ b/bin/create_github_release.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + COMPOUND_VERSION=$1 TAG=$2 VIMR_FILE_NAME=$3 diff --git a/bin/prepare_repositories.sh b/bin/prepare_repositories.sh index 86b1270d..58a9df5d 100755 --- a/bin/prepare_repositories.sh +++ b/bin/prepare_repositories.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + echo "### Preparing repositories" # delete all (local) tags diff --git a/bin/set_new_versions.sh b/bin/set_new_versions.sh index 445de1df..ebf10228 100755 --- a/bin/set_new_versions.sh +++ b/bin/set_new_versions.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + IS_SNAPSHOT=$1 MARKETING_VERSION=$2