Codebase list rust-libslirp / 1230b71
More instructions for release Ximin Luo 5 years ago
3 changed file(s) with 37 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
11
22 . ./vars.sh.frag
33
4 git diff -q -- "$PKGDIR_REL" || \
4 git diff --quiet --cached || \
5 abort 1 "You have other pending changes to git, please complete it or stash it away and re-run this script."
6
7 git diff --quiet -- "$PKGDIR_REL" || \
58 abort 1 "Please git-add your changes to $PKGDIR_REL before running"
9
10 head -n1 "$PKGDIR/debian/changelog" | grep -q UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO || \
11 abort 1 "Package already released. If that was a mistake and you didn't actually upload yet, you may rewind your git and re-run this script."
612
713 ( cd "$PKGDIR"
814 sed -i -e s/UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO/UNRELEASED/ debian/changelog
1925 git commit -m "Release package $PKG"
2026
2127 ( cd "$BUILDDIR" && dpkg-buildpackage -d -S --no-sign )
28
29 cat >&2 <<eof
30 Release of $PKG ready as a source package in ${BUILDDIR#$PWD/}.
31
32 If the source package is already in Debian and this version does not introduce
33 new binaries, then you can just go ahead and directly dput the source package.
34
35 If this is a NEW source package or introduces NEW binary packages not already
36 in the Debian archive, you will need to build a binary package out of it. The
37 recommended way is to run something like:
38
39 $ sbuild <source_package.dsc>
40 $ changestool <sbuild_binary_changes.changes> addsc <source_package.dsc>
41 $ debsign --no-re-sign <sbuild_binary_changes.changes>
42 $ dput <sbuild_binary_changes.changes>
43
44 See https://wiki.debian.org/sbuild for instructions on how to set it up. The
45 other tools are from the 'devscripts' package.
46
47 The above assumes you are a Debian Developer. If not, you should revert your
48 changes and ask a Debian Developer to do this step.
49 eof
1010 echo "FIXME fill me in using ./copyright.debcargo.hint as a guide" > "$PKGDIR/debian/copyright"
1111 fi
1212
13 rm -rf "$BUILDDIR" && mkdir -p "$(dirname $BUILDDIR)"
13 rm -rf "$BUILDDIR"
1414 $DEBCARGO package --config "$PKGCFG" --directory "$BUILDDIR" "$PKG" "$VER"
1515
16 if ! git diff -q -- "$PKGDIR_REL"; then
16 if ! git diff --quiet -- "$PKGDIR_REL"; then
1717 read -p "Update wrote some changes to $PKGDIR_REL, press enter to git diff..." x
1818 git diff -- "$PKGDIR_REL"
1919 fi
2121 PKGDIR="$PWD/$PKGDIR_REL"
2222 BUILDDIR="$PWD/build/$PKGNAME"
2323 PKGCFG="$PKGDIR/debian/debcargo.toml"
24
25 mkdir -p "$(dirname $BUILDDIR)"
26
27 if [ -z "$PKG" ]; then
28 abort 2 "Usage: $0 <package> [<version>]"
29 fi