# Brute force to remove privacy-breach-logo lintian warning.
# We could have updated the upstream sources but it would complexify
# the rebase
- if test "$(BUILD)" = "1"; then \
+ if test "$(BUILD_DOCS)" = "1"; then \
sed -i '/rel="shortcut icon" href="http:\/\/www.rust-lang.org\/favicon.ico"/d' `find $(DEB_DESTDIR) -iname '*.html'`; \
- rm -f `find $(DEB_DESTDIR) -iname '*.html' -empty` $(DEB_DESTDIR)/usr/share/doc/rust/html/.lock; \
+ rm -f `find $(DEB_DESTDIR) -iname '*.html' -empty` $(DEB_DESTDIR)/usr/share/doc/rust-doc/html/.lock; \
fi
dh_install
+override_dh_installchangelogs:
+ dh_installchangelogs RELEASES.md
+
+override_dh_installdocs:
+ dh_installdocs -X.tex -X.aux -X.log -X.out -X.toc
+
override_dh_auto_test:
# NB: not parallel - there is some race that leads to failures like:
# note: cc: error: x86_64-unknown-linux-gnu/test/run-pass/generic-default-type-params-cross-crate.stage2-x86_64-unknown-linux-gnulibaux/default_type_params_xc.o: No such file or directory
accomplishes these goals by being memory safe without using garbage
collection.
-
Format: HTML
-Index: /usr/share/doc/rust/book.html
+Index: /usr/share/doc/rust-doc/html/book/index.html
+Files: /usr/share/doc/rust-doc/html/book/*.html
Document: rust-intro
Title: The Rust Guide
Section: Programming/Rust
-Abstract: This introduction will give you a rough idea of what Rust is
- like, eliding many details.
+Abstract:
+ This introduction will give you a rough idea of what Rust is like,
+ eliding many details.
Format: HTML
-Index: /usr/share/doc/rust/intro.html
+Index: /usr/share/doc/rust-doc/html/intro.html
+Files: /usr/share/doc/rust-doc/html/intro.html
Format: EPUB
-Files: /usr/share/doc/rust/intro.epub
+Files: /usr/share/doc/rust-doc/html/intro.epub
Document: rust-reference
Title: The Rust Reference
Section: Programming/Rust
-Abstract: This document is the primary reference for the Rust
- programming language.
+Abstract:
+ This document is the primary reference for the Rust programming
+ language.
Format: HTML
-Index: /usr/share/doc/rust/reference.html
+Index: /usr/share/doc/rust-doc/html/reference.html
+Files: /usr/share/doc/rust-doc/html/reference.html
Format: PDF
-Files: /usr/share/doc/rust/reference.pdf
+Files: /usr/share/doc/rust-doc/html/reference.pdf.gz
Format: EPUB
-Files: /usr/share/doc/rust/reference.epub
+Files: /usr/share/doc/rust-doc/html/reference.epub
--- /dev/null
+Document: rust-style
+Title: The Rust Style Guidelines
+Section: Programming/Rust
+Abstract:
+ This document collects the emerging principles, conventions,
+ abstractions, and best practices for writing Rust code.
+
+Format: HTML
+Index: /usr/share/doc/rust-doc/html/style/index.html
+Files: /usr/share/doc/rust-doc/html/style/*.html
+ /usr/share/doc/rust-doc/html/style/*/*.html
+ /usr/share/doc/rust-doc/html/style/*/*/*.html
-doc/*
+debian/tmp/usr/lib/*/rust/*/share/doc/rust/html
+++ /dev/null
-usr/lib/*/rust/*/share/doc/rust/ usr/share/doc