5 test -n "$ver" ||
exit 2
7 SUS_WHITELIST
=$
(find "${PWD}/debian" -name upstream-tarball-unsuspicious.txt
-type f
)
9 rm -rf rustc-
${ver/*~*/beta}-src/
10 tar xf ..
/rustc_
$ver+dfsg1.orig.
tar.xz
&& cd rustc-
${ver/*~*/beta}-src/
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' '{}' \
;
17 /usr
/share
/cargo
/scripts
/audit-vendor-source \
19 "Files-Excluded: in debian/copyright and run a repack." \
20 -m text
/x-script.python \
23 echo "Artifacts left in rustc-$ver-src, please remove them yourself."