3 # Don't do releases in the wee hours :-)
5 (( "$h" < 10 && "$h" > 4 )) && {
6 echo "Go back to bed" 1>&2
10 #git update-ref refs/heads/akpm-end refs/heads/master
12 # This means I get the right tag if I finish after midnight
13 d=$(date --date "5 hours ago" '+%Y%m%d')
14 l="$(git describe --match "v*" --abbrev=0)"
19 echo 'Trees included into this release:
22 ---- ---- ---' > Next/Trees
25 ---- ----' > Next/SHA1s
28 while read email type name url ref build; do
29 [[ "$email" =~ '^#.*$' ]] && continue
31 [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
32 [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
33 [ "$type" = "git" ] && url="$url#$ref"
34 printf "%s$tab%s\t%s\n" $name $type $url
35 printf "%s$tab%s\n" $name $(git show-ref --verify --hash "refs/next/$d/$name") >> Next/SHA1s
36 done <../real_control >>Next/Trees
38 for i in quilt-import.log merge.log; do
39 grep -v '^Checking out files:' ../$i >Next/$i
42 printf -- "-next-%s\n" $d >localversion-next
44 git add Next localversion-next
45 git commit -s -v -a -m "Add linux-next specific files for $d"
46 git tag -u 41D5C07A -m "$n" "$n"
48 git update-ref refs/heads/stable refs/remotes/origin/master
49 git update-ref refs/heads/akpm-start 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"