mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-01 11:37:04 +00:00
Update scripts for beta versions
This commit is contained in:
parent
15ab0b3864
commit
3d32fa047d
6
debian/README.source
vendored
6
debian/README.source
vendored
@ -148,10 +148,10 @@ Import of a new upstream version
|
||||
--------------------------------
|
||||
|
||||
$ uscan --verbose
|
||||
$ ver=UPDATE-ME # whatever it is, X.YY.0 probably
|
||||
$ tar xf ../rustc-$ver-src.tar.gz && ( cd rustc-$ver-src/ && ../debian/prune-unused-deps ) && rm -rf rustc-$ver-src/
|
||||
$ ver=UPDATE-ME # whatever it is, X.YY.0 or X.YY.0~beta probably
|
||||
$ tar xf ../rustc-${ver/\~/-}-src.tar.gz && ( cd rustc-${ver/*~*/beta}-src/ && ../debian/prune-unused-deps ) && rm -rf rustc-${ver/*~*/beta}-src/
|
||||
# ^ If this fails, you probably need to refresh patches or edit debian/prune-unused-deps
|
||||
$ git commit -m "Update Files-Excluded for new upstream version $ver" debian/copyright
|
||||
$ git commit -m "Update Files-Excluded for new upstream version ${ver/\~/-}" debian/copyright
|
||||
$ uscan --verbose # yes, again, to pick up the new Files-Excluded stuff
|
||||
|
||||
# Keep running this and follow its instructions, until it gives no output:
|
||||
|
||||
10
debian/check-orig-suspicious.sh
vendored
10
debian/check-orig-suspicious.sh
vendored
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -ex
|
||||
|
||||
ver="$1"
|
||||
test -n "$ver" || exit 2
|
||||
@ -8,9 +8,11 @@ test -n "$ver" || exit 2
|
||||
FILTER="Files-Excluded: in debian/copyright and run a repack."
|
||||
SUS_WHITELIST=$(find "${PWD}" -name upstream-tarball-unsuspicious.txt -type f)
|
||||
|
||||
rm -rf rustc-$ver-src/
|
||||
tar xf ../rustc_$ver+dfsg1.orig.tar.xz && cd rustc-$ver-src/
|
||||
rm -rf rustc-${ver/*~*/beta}-src/
|
||||
tar xf ../rustc_$ver+dfsg1.orig.tar.xz && cd rustc-${ver/*~*/beta}-src/
|
||||
|
||||
# Remove tiny files 4 bytes or less
|
||||
find . -size -4c -delete
|
||||
# Remove non-suspicious files, warning on patterns that match nothing
|
||||
grep -v '^#' ${SUS_WHITELIST} | xargs -I% sh -c 'rm -r ./% || true'
|
||||
echo "Checking for suspicious files..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user