3 . "$(dirname $0)/common.sh"
5 # Don't do releases in the wee hours :-)
7 (( "$h" < 10 && "$h" > 4 )) && {
8 echo "Go back to bed" 1>&2
12 eval $(gpg-agent --daemon --enable-ssh-support)
13 ssh-add ~/.ssh/ra.kernel.org
15 # This means I get the right tag if I finish after midnight
16 d=$(date --date "5 hours ago" '+%Y%m%d')
17 l="$(git describe --match "v*" --abbrev=0)"
22 echo 'Trees included into this release:
25 ---- ---- ---' > Next/Trees
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 >>Next/Trees
39 mv ../SHA1s Next/SHA1s
41 for i in quilt-import.log merge.log; do
42 grep -v '^Checking out files:' ../$i >Next/$i
45 printf -- "-next-%s\n" $d >localversion-next
47 git add Next localversion-next
48 git commit -s -v -a -m "Add linux-next specific files for $d"
49 git tag -u 41D5C07A -m "$n" "$n"
51 git branch -f stable refs/remotes/origin/master
54 git diff-tree -p "$l.." >"../$p"
55 gpg2 -u 41D5C07A -a -b "../$p"
56 #echo "$l" > "../LATEST-IS-$n"
58 "$bin_dir/make_abat_scripts" "$d" "$l"
60 oldest=$(date --date "3 months ago" '+%Y%m%d')
61 echo "Removing old releases ... <= next-$oldest"
63 old_tags=$(git ls-remote --tags korg next-\* |
64 awk -F - '$2 ~ /^[0-9]*$/ && $2 <= '$oldest' { printf("next-%s\n", $2); }')
66 [ "$old_tags" ] && git push korg --delete $old_tags
68 echo Pushing to korg ...
71 echo Pushing to korg-history ...
74 echo Pushing to history
77 echo Pushing patch to kernel.org ...
80 kup --host=kup.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"