+ fix_config)
+ for d in $repos; do
+ url=`repourl "$d"`
+ pushurl=`repopushurl "$d"`
+ branch=`repobranch "$d"`
+ if [ -d "$d0/$d" ]; then
+ verbose cd "$d0/$d"
+ fix_git_config "$url" "$pushurl"
+ cd "$d0"
+ fi
+ done
+ ;;
+ keygen)
+ # enable the ssh URL for pushing
+ "$SELF" update -N -p
+
+ if [ -f ~/.ssh/id_rsa.pub ]; then
+ msg ""
+ msg "A key already exists and no new one will be generated. If you"
+ msg "already have done the procedure for getting your key approved, you"
+ msg "can skip the following paragraph and already use the repository."
+ msg ""
+ msg "To get access, your key has to be approved first. For that, visit"
+ msg "http://dev.xonotic.org/, then log in, create a \"New Issue\" on"
+ msg "the \"Support\" tracker in the \"Repository\" category where you"
+ msg "apply for access and paste the following output into the issue:"
+ msg ""
+ msg "`cat ~/.ssh/id_rsa.pub`"
+ msg ""
+ msg "Note that you will only have write access to branches that start"
+ msg "with your user name."
+ elif [ -f ~/.ssh/id_dsa.pub ]; then
+ msg ""
+ msg "A key already exists and no new one will be generated. If you"
+ msg "already have done the procedure for getting your key approved, you"
+ msg "can skip the following paragraph and already use the repository."
+ msg ""
+ msg "To get access, your key has to be approved first. For that, visit"
+ msg "http://dev.xonotic.org/, then log in, create a \"New Issue\" on"
+ msg "the \"Support\" tracker in the \"Repository\" category where you"
+ msg "apply for access and paste the following output into the issue:"
+ msg ""
+ msg "`cat ~/.ssh/id_dsa.pub`"
+ msg ""
+ msg "Note that you will only have write access to branches that start"
+ msg "with your user name."
+ else
+ msg ""
+ msg "No key has been generated yet. One will be generated now."
+ msg "If other people are using your computer, it is recommended"
+ msg "to specify a passphrase. Otherwise you can simply hit ENTER"
+ msg "when asked for a passphrase."
+ msg ""
+ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
+ msg ""
+ msg "To get access, your key has to be approved first. For that, visit"
+ msg "http://dev.xonotic.org/, then log in, create a \"New Issue\" on"
+ msg "the \"Support\" tracker in the \"Repository\" category where you"
+ msg "apply for access and paste the following output into the issue:"
+ msg ""
+ msg "`cat ~/.ssh/id_rsa.pub`"
+ msg ""
+ msg "Note that you will only have write access to branches that start"
+ msg "with your user name."
+ fi
+ ;;