summaryrefslogtreecommitdiffstats
path: root/debian/update-version.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:47 +0000
commit9a1b5b5113f0fe12f83b7cedc2353ad41cc837b1 (patch)
tree3f4102a262698a69127c4c527a3efe30a13ac7df /debian/update-version.sh
parentMerging upstream version 1.71.1+dfsg1. (diff)
downloadrustc-9a1b5b5113f0fe12f83b7cedc2353ad41cc837b1.tar.xz
rustc-9a1b5b5113f0fe12f83b7cedc2353ad41cc837b1.zip
Adding debian version 1.71.1+dfsg1-1.debian/1.71.1+dfsg1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/update-version.sh')
-rwxr-xr-xdebian/update-version.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/debian/update-version.sh b/debian/update-version.sh
index c2b1688de..491e1bbb0 100755
--- a/debian/update-version.sh
+++ b/debian/update-version.sh
@@ -6,15 +6,8 @@ local V=$1
python3 -c 'import sys; k=list(map(int,sys.argv[1].split("."))); k[1]-=1; print(".".join(map(str,k)))' "$V"
}
-cargo_new() {
-local V=$1
-python3 -c 'import sys; k=list(map(int,sys.argv[1].split("."))); k[1]+='"${2:-1}"'; k[0]-=1; print(".".join(map(str,k)))' "$V"
-}
-
update() {
local ORIG=$1 NEW=$2 NEW_LONG=$3
-local CARGO_NEW=${4:-$(cargo_new $NEW)}
-local CARGO_NEXT=${4:-$(cargo_new $NEW 2)}
ORIG_M1=$(prev_stable $ORIG)
NEW_M1=$(prev_stable $NEW)
@@ -38,8 +31,7 @@ fi
sed -i -e "s|libstd-rust-${ORIG_R}|libstd-rust-$NEW|g" \
-e "s|rustc:native\( *\)(<= [^)]*)|rustc:native\1(<= $NEW_LONG++)|g" \
-e "s|rustc:native\( *\)(>= ${ORIG_M1/./\\.}|rustc:native\1(>= ${NEW_M1}|g" \
- -e "s|cargo\( *\)(>= [^)]*)|cargo\1(>= ${CARGO_NEW}.0~~)|g" \
- -e "s|cargo\( *\)(<< [^)]*)|cargo\1(<< ${CARGO_NEXT}.0~~)|g" \
+ -e "s|cargo:native\( *\)(>= ${ORIG_M1/./\\.}|cargo:native\1(>= ${NEW_M1}|g" \
control
if [ "$WASI_COMMIT" != "$WASI_COMMIT_OLD" ]; then