3 # Don't do releases in the wee hours :-)
5 (( "$h" < 10 && "$h" > 4 )) && {
6 echo "Go back to bed" 1>&2
12 echo 'Trees included into this release:
15 ---- ---- ---' > Next/Trees
18 ---- ----' > Next/SHA1s
21 while read email type name url ref build; do
22 [[ "$email" =~ '^#.*$' ]] && continue
24 [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
25 [ "$type" = "git" ] && url="$url#$ref"
26 printf "%s$tab%s\t%s\n" $name $type $url
28 [ "$type" = "quilt" ] && href="quilt/$name"
29 printf "%s$tab%s\n" $name $(git rev-parse --verify $href) >> Next/SHA1s
30 done <../real_control >>Next/Trees
32 cp ../quilt-import.log ../merge.log Next/.
34 # This means I get the right tag if I finish after midnight
35 d=$(date --date "5 hours ago" '+%Y%m%d')
37 printf -- "-next-%s\n" $d >localversion-next
39 git add Next localversion-next
40 git commit -s -v -a -m "Add linux-next specific files for $d"
42 git update-ref refs/heads/stable refs/remotes/origin/master
44 # Stitch the new tree into the history branch
45 new_ref=$(echo "next-$d" | git commit-tree 'HEAD^{tree}' -p history -p HEAD)
46 git update-ref -m "next-$d" refs/heads/history $new_ref
48 cat >../abat-script-$d <<EOF
49 option title linux-next $d boot test
50 class power5 type="IBM,9124-720 eServer OpenPower 720"
51 class power5plus type="IBM,9110-51A System p5 510"
53 +\$config http://ozlabs.au.ibm.com/~tony/abat/configs/no_CONFIG_LOCALVERSION_AUTO.config
54 build generic git git://fs.ozlabs.ibm.com/home/kernel/linux-next.git \$kernel -c \$config -m -j\$num_cpus