]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
admin-merge: also do a test compile ;)
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 0020c6c2351a136cc966bc072654b78ab486de09..a5e00520bb069eec4cc152ed89745cf0ce98e947 100755 (executable)
--- a/all
+++ b/all
@@ -157,8 +157,8 @@ case "$cmd" in
                                verbose git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
                                        # TODO remove this line later
 
-                               git config core.autocrlf input
-                               git config core.safecrlf true
+                               verbose git config core.autocrlf input
+                               verbose git config core.safecrlf true
 
                                r=`git symbolic-ref HEAD`
                                r=${r#refs/heads/}
@@ -444,6 +444,30 @@ case "$cmd" in
                done
                rm -rf "$patchdir"
                ;;
+       admin-merge)
+               for d in $repos; do
+                       enter "$d0/$d" verbose
+                       git rev-parse "$1/$2" || continue
+                       # 1. review
+                       {
+                               git log HEAD.."$1/$2"
+                               git diff HEAD..."$1/$2"
+                       } | less
+                       a=
+                       while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
+                               echo "Merge \"$1/$2\" into `git symbolic-ref HEAD` of $d?"
+                               read -r a
+                       done
+                       if [ x"$a" = x"y" ]; then
+                               git merge "$1/$2"
+                               cd "$d0"
+                               "$SELF" compile
+                               cd "$d0/d"
+                               git push origin HEAD
+                               git push "$1" :"$2"
+                       fi
+               done
+               ;;
        *)
                echo "Usage:"
                echo "  $SELF pull"