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; 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 "%s-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 # Create a patch to remove the localversion-next file
49 cat >../nolocalversion-$d.patch <<EOF
50 diff --git a/localversion-next b/localversion-next
51 deleted file mode 100644
52 index d795256..0000000
53 --- a/localversion-next
59 l=$(git describe --match "v*" --abbrev=0)
61 cat >../abat-script-$d <<EOF
62 option title linux-next $d boot test
63 class power5 type="IBM,9124-720 eServer OpenPower 720"
64 class power5plus type="IBM,9110-51A System p5 510"
66 +\$patch1 "http://www.kernel.org/pub/linux/kernel/people/sfr/linux-next/patch-v$l-next-$d.bz2"
67 +\$patch2 "http://fs.ozlabs.ibm.com/~sfr/nolocalversion-$d.patch"
68 build generic stock \$kernel -p \$patch1 -p \$patch2 -m -j\$num_cpus