Codebase list rust-libslirp / d580884
Update instructions to be more detailed Ximin Luo 5 years ago
3 changed file(s) with 24 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
0 Instructions
1 ============
2
03 Run ``./update.sh <rust-crate-name>`` and follow its instructions.
14
25 (The above applies even for new Rust Debian packages.)
36
47 For now, the script assumes you cloned and built debcargo in ``../debcargo``,
58 so do that once before you run it.
9
10
11 TODO
12 ====
13
14 maybe use --copyright-guess-harder
1616 git diff -q -- "$PKGDIR_REL" || \
1717 abort 1 "cannot release, update resulted in git diffs to $PKGDIR_REL"
1818
19 git commit -m "Update package $PKG"
19 git commit -m "Release package $PKG"
2020
2121 ( cd "$BUILDDIR" && dpkg-buildpackage -d -S --no-sign )
33
44 if [ ! -d "$PKGDIR/debian" ]; then
55 mkdir -p "$PKGDIR/debian"
6 sed -e 's/^#overlay =/overlay =/' -e '/^#/d' "$DEBCARGO_GIT/debcargo.toml.example" > "$PKGCFG"
6 echo 'overlay = "."' > "$PKGCFG"
77 touch "$PKGDIR/debian/copyright"
88 git add "$PKGDIR"
99 fi
2020 Automatic update of $PKG finished; now it's your turn to manually review it.
2121
2222 Deal with any FIXMEs mentioned above, by editing the corresponding source files
23 in $PKGDIR_REL (and NOT the build directory as mentioned). When done, git-add
24 your changes and re-run this command (\`./update.sh $*\`).
23 in $PKGDIR_REL - and NOT the build directory as mentioned. If a hint file is
24 listed, indicated by (.), you should edit the *NON*-hint file, without the
25 suffix .debcargo.hint, and git-add the hint file exactly as output by debcargo.
26 So for example to deal with a FIXME in build/PKG/debian/copyright.debcargo.hint
27 you should edit src/PKG/debian/copyright.
2528
26 Check that your fixes actually get rid of the FIXMEs. Of course, you may ignore
27 FIXMEs listed in hint files, indicated by (.), assuming you actually fixed the
28 issues in the corresponding non-hint files. (We have no way to auto-detect this
29 so you have to be honest!)
29 When done, git-add your changes plus any unmodified hint files, and re-run this
30 command (\`./update.sh $*\`).
31
32 Check that your fixes actually get rid of the FIXMEs. Of course, you can ignore
33 FIXMEs listed in hint files, assuming you actually fixed the issues in the
34 corresponding non-hint files. (We have no way to auto-detect this so you have
35 to be honest!) You should also ignore the FIXME in the Distribution field in
36 the top entry of debian/changelog, that will be dealt with in the next step.
3037
3138 If satisfied with the output, run \`./release.sh $*\` to finalise your changes
3239 in the changelog and build a release-ready .dsc in build/. Assuming it runs