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 read -r -p "Yubikey token: " tok
13 ssh git@gitolite.kernel.org 2fa val-session $tok
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)"
24 Trees included into this release:
31 grep -v '^#' $CTRL_FILE |
32 while read email type name url ref build; do
33 [ "$type" = "branch" ] && continue
35 [ ${#name} -le 8 ] && tab="\t\t"
36 [ "$type" = "git" ] && url="$url#${ref##*:}"
37 printf "%s$tab%s\t%s\n" $name $type $url
41 mv ../SHA1s Next/SHA1s
43 for i in quilt-import.log merge.log; do
44 grep -v '^Checking out files:' ../$i >Next/$i
47 printf -- "-next-%s\n" $d >localversion-next
49 git add Next localversion-next
50 git commit -s -v -a -m "Add linux-next specific files for $d"
51 git tag -u $gpg_key -m "$n" "$n"
53 git branch -f stable refs/remotes/origin/master
56 git diff-tree -p "$l.." >"../$p"
57 gpg -u $kup_gpg_key -a -b "../$p"
59 oldest=$(date --date "3 months ago" '+%Y%m%d')
60 echo "Removing old releases ... <= next-$oldest"
62 old_tags=$(git tag -l 'next-*[0-9]' |
63 awk -F - '$2 ~ /^[0-9]*$/ && $2 <= '$oldest' { printf("next-%s\n", $2); }')
65 [ "$old_tags" ] && git tag -d $old_tags
67 echo Pushing to korg ...
70 echo Pushing to korg-history ...
73 echo Pushing to history
76 echo Pushing patch to kernel.org ...
79 kup put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"