3 . "$(dirname $0)/common.sh"
5 # Don't do releases in the wee hours :-)
7 (( "$h" < 10 && "$h" > 4 )) && {
8 echo "Go back to bed" 1>&2
12 eval $(gpg-agent --daemon --enable-ssh-support)
13 ssh-add ~/.ssh/ra.kernel.org
15 if ! ssh git@gitolite.kernel.org 2fa isval; then
16 read -r -p "Yubikey token: " tok
17 ssh git@gitolite.kernel.org 2fa val $tok
20 # This means I get the right tag if I finish after midnight
21 d=$(date --date "5 hours ago" '+%Y%m%d')
22 l="$(git describe --match "v*" --abbrev=0)"
27 echo 'Trees included into this release:
30 ---- ---- ---' > Next/Trees
34 while read email type name url ref build; do
35 [[ "$email" =~ '^#.*$' ]] && continue
37 [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
38 [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
39 [ "$type" = "git" ] && url="$url#$ref"
40 printf "%s$tab%s\t%s\n" $name $type $url >>Next/Trees
44 mv ../SHA1s Next/SHA1s
46 for i in quilt-import.log merge.log; do
47 grep -v '^Checking out files:' ../$i >Next/$i
50 printf -- "-next-%s\n" $d >localversion-next
52 git add Next localversion-next
53 git commit -s -v -a -m "Add linux-next specific files for $d"
54 git tag -u 41D5C07A -m "$n" "$n"
56 git branch -f stable refs/remotes/origin/master
59 git diff-tree -p "$l.." >"../$p"
60 gpg2 -u 41D5C07A -a -b "../$p"
61 #echo "$l" > "../LATEST-IS-$n"
63 "$bin_dir/make_abat_scripts" "$d" "$l"
65 oldest=$(date --date "3 months ago" '+%Y%m%d')
66 echo "Removing old releases ... <= next-$oldest"
68 old_tags=$(git ls-remote --tags korg next-\* |
69 awk -F - '$2 ~ /^[0-9]*$/ && $2 <= '$oldest' { printf("next-%s\n", $2); }')
71 [ "$old_tags" ] && git push korg --delete $old_tags
73 echo Pushing to korg ...
76 echo Pushing to korg-history ...
79 echo Pushing to history
82 echo Pushing patch to kernel.org ...
85 kup --host=kup.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"