Skip to content

Commit

Permalink
Merge pull request #1115 from weaveworks/bump-libcrypto3-script
Browse files Browse the repository at this point in the history
chore(scripting): a simple script to bump libcrypto3 and libssl3 version
  • Loading branch information
yitsushi authored Nov 14, 2023
2 parents 74fd85e + b08b5e6 commit dc20c27
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tools/bump-libcrypto3-libssl3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/bash

files=(
Makefile
Tiltfile
.github/workflows/release-runners.yaml
.github/workflows/release.yaml
.github/workflows/build-and-publish.yaml
)

old=$(grep "LIBCRYPTO_VERSION ?= " Makefile | cut -d ' ' -f 3)
new=${1:-}


if [ "${old}" == "" -o "${new}" == "" ]; then
echo "$0 <new version>"
exit 1
fi

echo " --> Old version: ${old}"
echo " --> New version: ${new}"

echo ""
echo "Press ^C to exit or any key to continue..."
read

for f in "${files[@]}"; do
sed -i "s/${old}/${new}/g" "${f}"
done

0 comments on commit dc20c27

Please sign in to comment.