X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=make_tree_file;h=66373bfcea5b69f75d6d8d4743966328af361e19;hb=d78ce6f9df7416730f4592e9863cd94ed7c275d8;hp=a1c433f4dd0e649db7b39eaa80ba3d89813c0890;hpb=335f559282433ef2d905adfae408f022a4929006;p=next-scripts diff --git a/make_tree_file b/make_tree_file index a1c433f..66373bf 100755 --- a/make_tree_file +++ b/make_tree_file @@ -9,17 +9,8 @@ h=$(date '+%k') exit 1 } -# allow kisskb to use more of ka2 -#ssh $build_host /usr/local/bin/set-kisskb-jfactor 48 - -trap "ssh-add -d $ssh_key_file" EXIT - -ssh-add $ssh_key_file || exit 1 - -if ! ssh git@gitolite.kernel.org 2fa isval; then - read -r -p "Yubikey token: " tok - ssh git@gitolite.kernel.org 2fa val $tok -fi +read -r -p "Yubikey token: " tok +ssh git@gitolite.kernel.org 2fa val-session $tok # This means I get the right tag if I finish after midnight d=$(date --date "5 hours ago" '+%Y%m%d') @@ -39,6 +30,7 @@ mkdir Next IFS=' ' grep -v '^#' $CTRL_FILE | while read email type name url ref build; do + [ "$type" = "branch" ] && continue tab="\t" [ ${#name} -le 8 ] && tab="\t\t" [ "$type" = "git" ] && url="$url#${ref##*:}" @@ -62,7 +54,7 @@ git branch -f stable refs/remotes/origin/master p="patch-$l-$n" git diff-tree -p "$l.." >"../$p" -gpg -u $gpg_key -a -b "../$p" +gpg -u $kup_gpg_key -a -b "../$p" oldest=$(date --date "3 months ago" '+%Y%m%d') echo "Removing old releases ... <= next-$oldest" @@ -84,6 +76,8 @@ git push history echo Pushing patch to kernel.org ... cd .. xz -v -9 "$p" -kup --host=kup.kernel.org put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz" +kup put "$p.xz" "$p.asc" "/pub/linux/kernel/next/$p.gz" + +ssh -O exit git@gitolite.kernel.org exit 0