Codebase list rust-stfu8 / 508cd1b
release.sh: fuck it, just auto-upload on RERELEASE, also highlight these in excuses Ximin Luo 4 years ago
2 changed file(s) with 19 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
6161 BG_OLD_IN_DEBIAN = "#ffcc66"
6262 BG_TOO_NEW = "#66ff99"
6363 BG_MISC_FAIL = "#ff6666"
64 BG_SOURCEONLY = "#9999ff"
6465
6566 def traverse(name, arch="", d=0):
6667 if name in already_seen:
120121 print(u, file=rust_regressions)
121122 if failed:
122123 attrs.update({ "label": "\\N\\nfailed: %s" % ",".join(failed) })
123 attrs.update({ "fillcolor": BG_MISC_FAIL, "style": "filled" })
124 bg = BG_SOURCEONLY if failed == ["builtonbuildd"] else BG_MISC_FAIL
125 attrs.update({ "fillcolor": bg, "style": "filled" })
124126 print_all('"%s" [%s]' % (name, ",".join("%s=\"%s\"" % p for p in attrs.items())))
125127
126128
120120 DEBSRC=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SSource)
121121 DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
122122
123 print_upload_instructions() {
124123 if [ "$RERELEASE" = 1 ]; then
124
125 ( cd build && dput "${DEBSRC}_${DEBVER}_source.changes" )
126 git push origin "$RELBRANCH"
127 git checkout master
128
125129 cat <<eof
126 Upload the source package
127 =========================
130 Source-only re-release of $CRATE uploaded. You need to perform the following steps:
131 eof
128132
129 Since you set RERELEASE=1, this package is presumably already in Debian. Go
130 ahead and directly dput the source package.
133 else
131134
132 cd build && dput ${DEBSRC}_${DEBVER}_source.changes
133 eof
134 else
135135 cat <<eof
136 Release of $CRATE ready as a source package in ${BUILDDIR#$PWD/}. You need to
137 perform the following steps:
138
136139 Build the package if necessary, and upload
137140 ==========================================
138141
155158
156159 If the build fails e.g. due to missing Build-Dependencies you should revert
157160 what I did (see below) and package those missing Build-Dependencies first.
158 eof
159 fi
160 }
161
162 cat >&2 <<eof
163 Release of $CRATE ready as a source package in ${BUILDDIR#$PWD/}. You need to
164 perform the following steps:
165
166 $(print_upload_instructions)
167161
168162 Push this pending-release branch
169163 ================================
174168
175169 git push origin $RELBRANCH && git checkout master
176170
171 eof
172
173 fi
174
175 cat >&2 <<eof
177176 Merge the pending-release branch if/when ACCEPTED
178177 =================================================
179178