]>
Commit | Line | Data |
---|---|---|
fdf9e348 AM |
1 | #!/bin/sh |
2 | ||
3 | # https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-March/040086.html | |
4 | ||
5 | set -e | |
6 | url=https://github.com/openssh/openssh-portable.git | |
7 | package=openssh | |
9805e738 AM |
8 | tag=V_9_0_P1 |
9 | branch=V_9_0 | |
fdf9e348 AM |
10 | out=$package-git.patch |
11 | repo=$package.git | |
12 | ||
13 | # use filterdiff, etc to exclude bad chunks from diff | |
14 | filter() { | |
15 | cat | |
16 | } | |
17 | ||
18 | if [ ! -d $repo ]; then | |
19 | git clone --bare $url -b $branch $repo | |
20 | fi | |
21 | ||
22 | cd $repo | |
23 | git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag | |
24 | git log -p --reverse $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp | |
25 | cd .. | |
26 | ||
27 | if cmp -s $out{,.tmp}; then | |
28 | echo >&2 "No new diffs..." | |
29 | rm -f $out.tmp | |
30 | exit 0 | |
31 | fi | |
32 | mv -f $out{.tmp,} | |
33 | ||
34 | ../md5 $package.spec | |
35 | ../dropin $out |