Skip to content

Commit

Permalink
Tidy up release.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbar committed Jun 15, 2020
1 parent 2ac6f91 commit 3f162fb
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

ctir_version=`echo "$TRAVIS_TAG" | sed 's/^ctir-//'`
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
os="ubuntu18.04";
os="ubuntu18.04"
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
os="macos10.15";
os="macos10.15"
else
echo "Bad OS?"
travis_terminate 1
Expand All @@ -19,13 +19,12 @@ mkdir build
mkdir install

# Build.
cd build;
cmake "$TRAVIS_BUILD_DIR/llvm" -DCMAKE_BUILD_TYPE=MinSizeRel \
-DLLVM_ENABLE_PROJECTS=clang \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DCMAKE_INSTALL_PREFIX="../install" \
-G "Ninja";
ninja clang;
cd build
cmake "$TRAVIS_BUILD_DIR/llvm" -DCMAKE_BUILD_TYPE=MinSizeRel \
-DLLVM_ENABLE_PROJECTS=clang \
-DLLVM_TARGETS_TO_BUILD="X86" \
-G "Ninja"
ninja clang

# Zip binaries.
zip -r --symlink "ctir-clang-v$ctir_version-$os.zip" bin/clang \
Expand All @@ -35,5 +34,5 @@ zip -r --symlink "ctir-clang-v$ctir_version-$os.zip" bin/clang
mv ctir-clang*.zip "$TRAVIS_BUILD_DIR"

# Zip source.
cd "$TRAVIS_BUILD_DIR";
cd "$TRAVIS_BUILD_DIR"
zip -r "ctir-clang-v$ctir_version-source.zip" clang

0 comments on commit 3f162fb

Please sign in to comment.