120 | 120 |
DEBSRC=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SSource)
|
121 | 121 |
DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
|
122 | 122 |
|
123 | |
print_upload_instructions() {
|
124 | 123 |
if [ "$RERELEASE" = 1 ]; then
|
|
124 |
|
|
125 |
( cd build && dput "${DEBSRC}_${DEBVER}_source.changes" )
|
|
126 |
git push origin "$RELBRANCH"
|
|
127 |
git checkout master
|
|
128 |
|
125 | 129 |
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
|
128 | 132 |
|
129 | |
Since you set RERELEASE=1, this package is presumably already in Debian. Go
|
130 | |
ahead and directly dput the source package.
|
|
133 |
else
|
131 | 134 |
|
132 | |
cd build && dput ${DEBSRC}_${DEBVER}_source.changes
|
133 | |
eof
|
134 | |
else
|
135 | 135 |
cat <<eof
|
|
136 |
Release of $CRATE ready as a source package in ${BUILDDIR#$PWD/}. You need to
|
|
137 |
perform the following steps:
|
|
138 |
|
136 | 139 |
Build the package if necessary, and upload
|
137 | 140 |
==========================================
|
138 | 141 |
|
|
155 | 158 |
|
156 | 159 |
If the build fails e.g. due to missing Build-Dependencies you should revert
|
157 | 160 |
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)
|
167 | 161 |
|
168 | 162 |
Push this pending-release branch
|
169 | 163 |
================================
|
|
174 | 168 |
|
175 | 169 |
git push origin $RELBRANCH && git checkout master
|
176 | 170 |
|
|
171 |
eof
|
|
172 |
|
|
173 |
fi
|
|
174 |
|
|
175 |
cat >&2 <<eof
|
177 | 176 |
Merge the pending-release branch if/when ACCEPTED
|
178 | 177 |
=================================================
|
179 | 178 |
|