All files have a strong relation to the book sources of the rust-lang project itself. This may help to lower the burden for intrested people to get involved in OrbTK as well as reuse workflow habits. * LICENSE-MIT: The projekt licensing terms * README.md: Github frontpage * CONTIRBUTING.md: Advises on howto help improving the book * style-guide.md: Advises on howto improve the readability of generated prose and code. * tools: layout helper scripts and rust-code * ci: continius integration helper scripts * .gitattributes: set git default behaviours * .gitignore: keep source tree sane * Cargo.toml: package dependencies * rustfmt.toml: formatting rules for rust code * book.toml: mdBook dependencies Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
23 lines
941 B
Bash
Executable File
23 lines
941 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Remove files that are never affected by rustfmt or are otherwise uninteresting
|
|
rm -rf tmp/book-before/css/ tmp/book-before/theme/ tmp/book-before/img/ tmp/book-before/*.js \
|
|
tmp/book-before/FontAwesome tmp/book-before/*.css tmp/book-before/*.png \
|
|
tmp/book-before/*.json tmp/book-before/print.html
|
|
|
|
rm -rf tmp/book-after/css/ tmp/book-after/theme/ tmp/book-after/img/ tmp/book-after/*.js \
|
|
tmp/book-after/FontAwesome tmp/book-after/*.css tmp/book-after/*.png \
|
|
tmp/book-after/*.json tmp/book-after/print.html
|
|
|
|
# Get all the html files before
|
|
ls tmp/book-before/*.html | \
|
|
# Extract just the filename so we can reuse it easily.
|
|
xargs -n 1 basename | \
|
|
while IFS= read -r filename; do
|
|
# Remove any files that are the same before and after
|
|
diff "tmp/book-before/$filename" "tmp/book-after/$filename" > /dev/null \
|
|
&& rm "tmp/book-before/$filename" "tmp/book-after/$filename"
|
|
done
|