From 60baae7ada6d36fdd9ea71b711cab170408e84ca Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Mon, 25 Jul 2016 06:39:27 -0700 Subject: [PATCH] release script improvements Summary: fixed a few things while preparing 0.9.0 Reviewed By: martinoluca Differential Revision: D3599243 fbshipit-source-id: f2581da --- scripts/package_infer_source_with_clang_binaries.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/package_infer_source_with_clang_binaries.sh b/scripts/package_infer_source_with_clang_binaries.sh index 80789727e..27d0a8854 100755 --- a/scripts/package_infer_source_with_clang_binaries.sh +++ b/scripts/package_infer_source_with_clang_binaries.sh @@ -24,7 +24,8 @@ cd "$ROOT_INFER_DIR" ./build-infer.sh # Get a copy of the github repo -git clone https://github.com/facebook/infer.git "$INFER_SOURCE" +git clone https://github.com/facebook/infer.git "$INFER_SOURCE" || \ + git -C "$INFER_SOURCE" fetch origin master pushd "$INFER_SOURCE" # Name of the release package VERSION=`git describe --abbrev=0 --tags` @@ -59,7 +60,7 @@ mkdir -pv "$PKG_PLUGIN_DIR"/clang-ocaml/build rsync -a "$CLANG_PLUGIN_DIR"/{CONTRIBUTING.md,LICENSE,LLVM-LICENSE,PATENTS,README.md} "$PKG_PLUGIN_DIR" rsync -a "$CLANG_PREFIX"/bin/clang* "$PKG_CLANG_PREFIX"/bin/ rsync -a --exclude '*.a' "$CLANG_PREFIX"/lib/ "$PKG_CLANG_PREFIX"/lib/ -rsync -a "$CLANG_PLUGIN_DIR"/clang/include/ "$PKG_CLANG_PREFIX"/include/ +rsync -a "$CLANG_PREFIX"/include/ "$PKG_CLANG_PREFIX"/include/ rsync -a "$CLANG_PLUGIN_DIR"/libtooling/build/ "$PKG_PLUGIN_DIR"/libtooling/build/ rsync -a "$CLANG_PLUGIN_DIR"/clang-ocaml/build/ "$PKG_PLUGIN_DIR"/clang-ocaml/build/