Codebase list rust-stfu8 / 6c1b318
Update docs Ximin Luo 5 years ago
1 changed file(s) with 19 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
22
33 ``cargo install debcargo``, then for each new package:
44
5 **To package a new crate:**
5 **To package a new crate, or to update an existing crate:**
66
7 $ ``./new-package.sh <rust-crate-name>`` and follow its instructions.
7 $ ``./new-package.sh <rust-crate-name>``
88
9 **To update a crate:**
9 or
1010
1111 $ ``./update.sh <rust-crate-name>``
1212
13 Note that new-package.sh is just a symlink to update.sh. This has been created
14 to help new comers.
13 and follow its instructions.
14
15 Note that new-package.sh is just a symlink to update.sh, to help newcomers.
1516
1617 **To package an older version of a crate:**
1718
19 To maintain an old version of a crate alongside the latest one, first make sure
20 the latest version is packaged by doing all of the above, then run:
21
22 $ ``./new-package.sh <rust-crate-name> <old-version>``
23
24 or
25
1826 $ ``./update.sh <rust-crate-name> <old-version>``
1927
20 To maintain an old version of a crate alongside the latest one, first
21 make sure the latest version is packaged by doing all of the above, then run
22 the command above and copy anything relevant from the config directory
23 for the latest version, to that for the old version.
28 and follow its instructions. To make this easier, you can start by copying
29 anything relevant from ``src/<rust-crate-name>`` to
30 ``src/<rust-crate-name>-<old-version>``, then adapting it as needed.
2431
2532 **To prepare the release:**
2633
2734 $ ``./release.sh <rust-crate-name>``
2835
29 This will prepare the necessary Debian files in build/. It will also creating a
30 git branch to manage the packaging until it is accepted in Debian itself.
36 This will prepare the necessary Debian files in ``build/``. It will also create
37 a git branch to manage the packaging until it is accepted in Debian itself.
38
3139
3240 NEWS
3341 ====