Codebase list rust-libslirp / 23db362
Automatically find debcargo Ximin Luo 5 years ago
2 changed file(s) with 15 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 Instructions
11 ============
2
3 ``cargo install debcargo``, then for each new package:
24
35 Run ``./update.sh <rust-crate-name>`` and follow its instructions.
46
57 (The above applies even for new Rust Debian packages.)
68
7 For now, the script assumes you cloned and built debcargo in ``../debcargo``,
8 so do that once before you run it.
9
109
1110 TODO
1211 ====
1312
14 maybe use --copyright-guess-harder
13 Maybe use ``--copyright-guess-harder``.
11
22 abort() { local x=$1; shift; echo >&2 "$0: abort: $@"; exit "$x"; }
33
4 DEBCARGO_GIT=${DEBCARGO_GIT:-$PWD/../debcargo}
5 DEBCARGO=${DEBCARGO:-$DEBCARGO_GIT/target/debug/debcargo}
4 if [ -n "$DEBCARGO" ]; then
5 true
6 elif which debcargo >/dev/null; then
7 DEBCARGO=$(which debcargo)
8 elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
9 DEBCARGO="$HOME/.cargo/bin/debcargo"
10 else
11 abort 1 "debcargo not found, run \`cargo install debcargo\` or set DEBCARGO to point to it"
12 fi
13
14 test -x "$DEBCARGO" || abort 1 "debcargo found but not executable: $DEBCARGO"
15
616 PKG="$1"
717 VER="$2"
818