]> git.ozlabs.org Git - next-scripts/blobdiff - make_tree_file
use `nproc` as the default j factor
[next-scripts] / make_tree_file
index 5a8248273f56c6f7e92780892cace033f8489a12..c144ccc59980e77fe6505b767300a1aa06bc0c6f 100755 (executable)
@@ -9,10 +9,8 @@ h=$(date '+%k')
        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')
@@ -32,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##*:}"
@@ -55,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"