]> git.proxmox.com Git - rustc.git/blob - debian/check-orig-suspicious.sh
Update upstream source from tag 'upstream/1.64.0+dfsg1'
[rustc.git] / debian / check-orig-suspicious.sh
1 #!/bin/bash
2 set -e
3
4 ver="$1"
5 test -n "$ver" || exit 2
6
7 SUS_WHITELIST=$(find "${PWD}/debian" -name upstream-tarball-unsuspicious.txt -type f)
8
9 rm -rf rustc-${ver/*~*/beta}-src/
10 tar xf ../rustc_$ver+dfsg1.orig.tar.xz && cd rustc-${ver/*~*/beta}-src/
11
12 # TODO: remove this code snippet after it gets into our cargo
13 # Strip comments & blank lines before testing rust source code -
14 # some authors like to write really long comments
15 find . -name '*.rs' -execdir sed -i -e '\,^\s*//,d' -e '/^\s*$/d' '{}' \;
16
17 /usr/share/cargo/scripts/audit-vendor-source \
18 "$SUS_WHITELIST" \
19 "Files-Excluded: in debian/copyright and run a repack." \
20 -m text/x-script.python \
21 -m application/csv
22
23 echo "Artifacts left in rustc-$ver-src, please remove them yourself."