mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-22 00:35:54 +00:00
More strict pattern matching in update-version script
This commit is contained in:
parent
68a8ef27ea
commit
9bdca5cfee
11
debian/update-version.sh
vendored
11
debian/update-version.sh
vendored
@ -9,14 +9,15 @@ local ORIG=$1 NEW=$2
|
||||
|
||||
ORIG_M1=$(prev_stable $ORIG)
|
||||
NEW_M1=$(prev_stable $NEW)
|
||||
ORIG_R="${ORIG/./\\.}" # match a literal dot, otherwise this might sometimes match e.g. debhelper (>= 9.20141010)
|
||||
|
||||
sed -i -e "s|libstd-rust-$ORIG|libstd-rust-$NEW|g" \
|
||||
-e "s|rustc (<= $ORIG|rustc (<= $NEW|g" \
|
||||
-e "s|rustc (>= ${ORIG_M1}|rustc (>= ${NEW_M1}|g" control
|
||||
sed -i -e "s|libstd-rust-${ORIG_R}|libstd-rust-$NEW|g" \
|
||||
-e "s|rustc (<= ${ORIG_R}|rustc (<= $NEW|g" \
|
||||
-e "s|rustc (>= ${ORIG_M1/./\\.}|rustc (>= ${NEW_M1}|g" control
|
||||
|
||||
git mv libstd-rust-$ORIG.lintian-overrides libstd-rust-$NEW.lintian-overrides
|
||||
sed -i -e "s|libstd-rust-$ORIG|libstd-rust-$NEW|g" libstd-rust-$NEW.lintian-overrides
|
||||
sed -i -e "s|libstd-rust-$ORIG|libstd-rust-$NEW|g" source/lintian-overrides
|
||||
sed -i -e "s|libstd-rust-${ORIG_R}|libstd-rust-$NEW|g" libstd-rust-$NEW.lintian-overrides
|
||||
sed -i -e "s|libstd-rust-${ORIG_R}|libstd-rust-$NEW|g" source/lintian-overrides
|
||||
}
|
||||
|
||||
update 1.9 1.10
|
||||
|
||||
Loading…
Reference in New Issue
Block a user