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 # allow kisskb to use more of ka2
13 #ssh $build_host /usr/local/bin/set-kisskb-jfactor 48
15 ssh-add -t 600 $ssh_key_file || exit 1
17 if ! ssh git@gitolite.kernel.org 2fa isval; then
18 read -r -p "Yubikey token: " tok
19 ssh git@gitolite.kernel.org 2fa val $tok
22 # This means I get the right tag if I finish after midnight
23 d=$(date --date "5 hours ago" '+%Y%m%d')
24 l="$(git describe --match "v*" --abbrev=0)"
31 Trees included into this release:
38 grep -v '^#' $CTRL_FILE |
39 while read email type name url ref build; do
41 [ ${#name} -le 8 ] && tab="\t\t"
42 [ "$type" = "git" ] && url="$url#${ref##*:}"
43 printf "%s$tab%s\t%s\n" $name $type $url
47 mv ../SHA1s Next/SHA1s
49 for i in quilt-import.log merge.log; do
50 grep -v '^Checking out files:' ../$i >Next/$i
53 printf -- "-next-%s\n" $d >localversion-next
55 git add Next localversion-next
56 git commit -s -v -a -m "Add linux-next specific files for $d"
57 git tag -u $gpg_key -m "$n" "$n"
59 git branch -f stable refs/remotes/origin/master
62 git diff-tree -p "$l.." >"../$p"
63 gpg -u $gpg_key -a -b "../$p"
65 oldest=$(date --date "3 months ago" '+%Y%m%d')
66 echo "Removing old releases ... <= next-$oldest"
68 old_tags=$(git ls-remote --tags korg 'next-*[0-9]' |
69 awk -F - '$2 ~ /^[0-9]*$/ && $2 <= '$oldest' { printf("next-%s\n", $2); }')
71 [ "$old_tags" ] && git push korg --delete $old_tags
73 echo Pushing to korg ...
76 echo Pushing to korg-history ...
79 echo Pushing to history
82 echo Pushing patch to kernel.org ...
85 kup --host=kup.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz"