Update scripts for beta versions

This commit is contained in:
Ximin Luo 2017-10-25 22:45:13 +02:00
parent 15ab0b3864
commit 3d32fa047d
2 changed files with 9 additions and 7 deletions

View File

@ -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:

View File

@ -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..."