2021-01-03 23:23:47 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Manually run after pushing the Github release
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
MAJOR=0
|
|
|
|
MINOR=2
|
|
|
|
OLD_PATCH=$1
|
|
|
|
NEW_PATCH=$2
|
|
|
|
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-04-11 20:14:27 +03:00
|
|
|
perl -pi -e "s/${MAJOR}_${MINOR}_${OLD_PATCH}/${MAJOR}_${MINOR}_${NEW_PATCH}/g" README.md ~/docs/book/src/howto/README.md ~/docs/book/src/side_projects/santa.md ~/docs/book/src/side_projects/osm_viewer.md ~/docs/book/src/side_projects/fifteen_min.md
|
|
|
|
perl -pi -e "s/${MAJOR}\.${MINOR}\.${OLD_PATCH}/${MAJOR}\.${MINOR}\.${NEW_PATCH}/g" README.md ~/docs/book/src/howto/README.md ~/docs/book/src/side_projects/santa.md ~/docs/book/src/side_projects/osm_viewer.md ~/docs/book/src/side_projects/fifteen_min.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"
|
|
|
|
echo "2) aws s3 cp --recursive --exclude 'data/input/*' s3://abstreet/dev/ s3://abstreet/${MAJOR}.${MINOR}.${NEW_PATCH}"
|
2021-01-03 23:23:47 +03:00
|
|
|
echo "3) Post to r/abstreet"
|
|
|
|
echo "4) Update map_gui/src/tools/updater.rs"
|
2021-02-01 02:44:41 +03:00
|
|
|
echo "5) Push the docs repo too"
|