3 # Don't do releases in the wee hours :-)
5 (( "$h" < 10 && "$h" > 4 )) && {
6 echo "Go back to bed" 1>&2
11 ssh-add ~/.ssh/ra.kernel.org
13 # This means I get the right tag if I finish after midnight
14 d=$(date --date "5 hours ago" '+%Y%m%d')
15 l="$(git describe --match "v*" --abbrev=0)"
20 echo 'Trees included into this release:
23 ---- ---- ---' > Next/Trees
26 ---- ----' > Next/SHA1s
29 while read email type name url ref build; do
30 [[ "$email" =~ '^#.*$' ]] && continue
32 [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
33 [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
34 [ "$type" = "git" ] && url="$url#$ref"
35 printf "%s$tab%s\t%s\n" $name $type $url
36 printf "%s$tab%s\n" $name $(git show-ref --verify --hash "refs/next/$d/$name") >> Next/SHA1s
37 done <../real_control >>Next/Trees
39 for i in quilt-import.log merge.log; do
40 grep -v '^Checking out files:' ../$i >Next/$i
43 printf -- "-next-%s\n" $d >localversion-next
45 git add Next localversion-next
46 git commit -s -v -a -m "Add linux-next specific files for $d"
47 git tag -u 41D5C07A -m "$n" "$n"
49 git branch -f stable refs/remotes/origin/master
52 git diff-tree -p "$l.." >"../$p"
53 gpg2 -u 41D5C07A -a -b "../$p"
54 #echo "$l" > "../LATEST-IS-$n"
56 ../tools/make_abat_scripts "$d" "$l"
58 echo Pushing to korg ...
61 echo Pushing to korg-history ...
64 echo Pushing to history
67 echo Pushing patch to kernel.org ...
70 kup --host=geb.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"