Skip to content

Commit

Permalink
chore: simplify part of release script, report output, minor cleanup (#…
Browse files Browse the repository at this point in the history
…34)

* chore: simplify reademe tag/llvm version interpolation

* fix: remove accidental x mode from readme

* chore: print info about release output path
  • Loading branch information
Steve Manuel committed May 2, 2022
1 parent 406c43e commit 7114d02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
Empty file modified scripts/release/README.release.md
100755 → 100644
Empty file.
22 changes: 15 additions & 7 deletions scripts/release/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ cp target/release/${SDK_BIN} ${DIST_ABS_PATH}

# collect the licenses & README
cp LICENSE ${DIST_ABS_PATH}
cp scripts/release/README.release.md scripts/release/README.release.md.local
sed -i -- "s/#TAG#/${TAG}/g" scripts/release/README.release.md
sed -i -- "s/#LLVM_VERSION#/${LLVM_VERSION}/g" scripts/release/README.release.md
cp scripts/release/README.release.md ${DIST_ABS_PATH}/README.md
rm -f scripts/release/README.release.md--
mv scripts/release/README.release.md.local scripts/release/README.release.md
cat scripts/release/README.release.md | \
sed "s/#TAG#/${TAG}/g" | \
sed "s/#LLVM_VERSION#/${LLVM_VERSION}/g" \
> ${DIST_ABS_PATH}/README.md

# collect the QCS C SDK shared library
pushd ${TMP_DEPS_ABS_PATH}/qcs-sdk-c
Expand All @@ -28,4 +26,14 @@ popd
# create the archive
tar -cvzf ${ARCHIVE} ${DIST_DIR}
ls -ll ${ARCHIVE}
shasum -a 256 ${ARCHIVE} > ${CHECKSUM}
shasum -a 256 ${ARCHIVE} > ${CHECKSUM}

# print location of pre-archive local release:
if [[ $CI != "true" ]]; then
set +x
echo "------------------------------------------"
echo "Release build complete! See contents here:"
echo "./${DIST_DIR}"
echo ""
echo "Archived contents here: ./${ARCHIVE}"
fi

0 comments on commit 7114d02

Please sign in to comment.