summaryrefslogtreecommitdiffstats
path: root/debian/llvm-upstream-patch.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:03:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:03:05 +0000
commit217d9223a5aa75daf9f286fd1fc06dae379b5dbc (patch)
treeb43bedae234ad56894a82934ee57e3619f3374d5 /debian/llvm-upstream-patch.sh
parentAdding upstream version 1.64.0+dfsg1. (diff)
downloadrustc-217d9223a5aa75daf9f286fd1fc06dae379b5dbc.tar.xz
rustc-217d9223a5aa75daf9f286fd1fc06dae379b5dbc.zip
Adding debian version 1.64.0+dfsg1-1.debian/1.64.0+dfsg1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/llvm-upstream-patch.sh')
-rwxr-xr-xdebian/llvm-upstream-patch.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/llvm-upstream-patch.sh b/debian/llvm-upstream-patch.sh
new file mode 100755
index 000000000..fc8797136
--- /dev/null
+++ b/debian/llvm-upstream-patch.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Run this on https://github.com/llvm-mirror/llvm
+# Or another repo where the above is the "upstream" remote
+set -e
+head=$(git rev-parse --verify -q remotes/upstream/master || git rev-parse --verify -q remotes/origin/master)
+test -n "$head"
+for i in "$@"; do
+ git show $(git rev-list "$head" -n1 --grep='git-svn-id: .*@'"$i") > rL"$i".patch
+done