2021-01-03 23:23:47 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Manually run after pushing the Github release
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-11-15 02:06:53 +03:00
|
|
|
OLD_MAJOR=0
|
2021-11-15 03:44:49 +03:00
|
|
|
OLD_MINOR=3
|
2021-01-03 23:23:47 +03:00
|
|
|
OLD_PATCH=$1
|
2021-11-15 02:06:53 +03:00
|
|
|
|
|
|
|
NEW_MAJOR=0
|
|
|
|
NEW_MINOR=3
|
2021-01-03 23:23:47 +03:00
|
|
|
NEW_PATCH=$2
|
2021-11-15 02:06:53 +03:00
|
|
|
|
2021-01-03 23:23:47 +03:00
|
|
|
if [ "$OLD_PATCH" == "" ] || [ "$NEW_PATCH" == "" ]; then
|
|
|
|
echo Missing args;
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2021-02-01 02:44:41 +03:00
|
|
|
# This assumes https://github.com/a-b-street/docs is checked out at ~/docs
|
2021-11-15 02:06:53 +03:00
|
|
|
perl -pi -e "s/${OLD_MAJOR}_${OLD_MINOR}_${OLD_PATCH}/${NEW_MAJOR}_${NEW_MINOR}_${NEW_PATCH}/g" README.md ~/docs/book/src/user/README.md ~/docs/book/src/software/*.md ~/docs/book/src/proposals/*/*.md
|
|
|
|
perl -pi -e "s/${OLD_MAJOR}\.${OLD_MINOR}\.${OLD_PATCH}/${NEW_MAJOR}\.${NEW_MINOR}\.${NEW_PATCH}/g" README.md ~/docs/book/src/user/README.md ~/docs/book/src/software/*.md ~/docs/book/src/software/*/*.md ~/docs/book/src/proposals/*/*.md
|
2021-01-03 23:23:47 +03:00
|
|
|
|
|
|
|
echo "Don't forget to:"
|
2021-04-18 19:25:35 +03:00
|
|
|
echo "1) ./release/deploy_web.sh"
|
2021-11-15 02:06:53 +03:00
|
|
|
echo "2) aws s3 cp --recursive --exclude 'data/input/*' s3://abstreet/dev/ s3://abstreet/${NEW_MAJOR}.${NEW_MINOR}.${NEW_PATCH}"
|
2021-10-05 19:09:33 +03:00
|
|
|
echo "3) Update map_gui/src/tools/mod.rs"
|
2021-10-04 01:04:50 +03:00
|
|
|
echo "4) Push the docs repo too"
|