update of the doc
Sylvestre Ledru
5 years ago
2 | 2 | |
3 | 3 | ``cargo install debcargo``, then for each new package: |
4 | 4 | |
5 | Run ``./update.sh <rust-crate-name>`` and follow its instructions. | |
5 | **To package a new crate:** | |
6 | 6 | |
7 | (The above applies even for new Rust Debian packages.) | |
7 | $ ``./new-package.sh <rust-crate-name>`` and follow its instructions. | |
8 | 8 | |
9 | If you must maintain an old version of a crate alongside the latest one, first | |
9 | **To update a crate:** | |
10 | ||
11 | $ ``./update.sh <rust-crate-name>`` | |
12 | ||
13 | Note that new-package.sh is just a symlink to update.sh. This has been created | |
14 | to help new comers. | |
15 | ||
16 | **To package an older version of a crate:** | |
17 | ||
18 | $ ``./update.sh <rust-crate-name> <old-version>`` | |
19 | ||
20 | To maintain an old version of a crate alongside the latest one, first | |
10 | 21 | make sure the latest version is packaged by doing all of the above, then run |
11 | ``./update.sh <rust-crate-name> <old-version>``, then copy anything relevant | |
12 | from the config directory for the latest version, to that for the old version. | |
22 | the command above and copy anything relevant from the config directory | |
23 | for the latest version, to that for the old version. | |
13 | 24 | |
14 | 25 | |
15 | 26 | NEWS |