]> git.lizzy.rs Git - rust.git/blob - pre_publish.sh
Merge pull request #1543 from Manishearth/fix-windows-tests
[rust.git] / pre_publish.sh
1 #!/bin/bash
2
3 set -e
4
5 ./util/update_lints.py
6
7 git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
8
9 # abort if the files differ
10 diff "publish.files" "helper.txt"
11
12 rm helper.txt
13
14 # add all changed files
15 git add .
16 git commit -m "Bump the version"
17
18 set +e
19
20 cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
21 cargo fmt -- --write-mode=overwrite
22
23 echo "remember to add a git tag and running 'cargo test' before committing the rustfmt changes"