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 while read email type name url ref build; do
27 [[ "$email" =~ '^#.*$' ]] && continue
29 [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
30 [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
31 [ "$type" = "git" ] && url="$url#$ref"
32 printf "%s$tab%s\t%s\n" $name $type $url
33 done <../real_control >>Next/Trees
35 mv ../SHA1s Next/SHA1s
37 for i in quilt-import.log merge.log; do
38 grep -v '^Checking out files:' ../$i >Next/$i
41 printf -- "-next-%s\n" $d >localversion-next
43 git add Next localversion-next
44 git commit -s -v -a -m "Add linux-next specific files for $d"
45 git tag -u 41D5C07A -m "$n" "$n"
47 git branch -f stable refs/remotes/origin/master
50 git diff-tree -p "$l.." >"../$p"
51 gpg2 -u 41D5C07A -a -b "../$p"
52 #echo "$l" > "../LATEST-IS-$n"
54 $(dirname $0)/make_abat_scripts "$d" "$l"
56 oldest=$(date --date "3 months ago" '+%Y%m%d')
57 echo "Removing old releases ... <= next-$oldest"
59 for i in $(git ls-remote --tags korg next-\* |
60 sed -n 's,^.*[ \t]refs/tags/next-\([0-9]*\)$,\1,p' |
62 [ $i -gt $oldest ] && break
63 git push korg --delete next-$i
66 echo Pushing to korg ...
69 echo Pushing to korg-history ...
72 echo Pushing to history
75 echo Pushing patch to kernel.org ...
78 kup --host=geb.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"