File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ # Fixes a dumb issue where Mac's don't come with GNU sed out of the box.
6+ sed=$( which {gsed,sed} | head -n1)
7+
58help () {
69 cat << - EOF
710Usage: TAG=tag $0
4245git checkout v10
4346
4447PACKAGE_DIRS=$( find . -mindepth 2 -type f -name ' go.mod' -exec dirname {} \; \
45- | sed ' s/^\.\///' \
48+ | $ sed ' s/^\.\///' \
4649 | sort)
4750
4851for dir in $PACKAGE_DIRS
4952do
50- sed --in-place \
53+ $ sed --in-place \
5154 " s/go-pg\/pg\([^ ]*\) v.*/go-pg\/pg\1 ${TAG} /" " ${dir} /go.mod"
5255done
5356
5760 (cd ./${dir} && go get -d && go mod tidy)
5861done
5962
60- sed --in-place " s/\(return \)\" [^\" ]*\" /\1\" ${TAG# v} \" /" ./version.go
63+ $ sed --in-place " s/\(return \)\" [^\" ]*\" /\1\" ${TAG# v} \" /" ./version.go
6164
6265git checkout -b release/${TAG} v10
6366git add -u
You can’t perform that action at this time.
0 commit comments