]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
new: ./all compile -p for profile
authorRudolf Polzer <divverent@alientrap.org>
Fri, 25 Mar 2011 20:04:33 +0000 (21:04 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 25 Mar 2011 20:04:48 +0000 (21:04 +0100)
all

diff --git a/all b/all
index 220daf302b1c898e06e1514cb2c7914ccd99cf56..403c4583fc99c1660057dbb224a5e007b05a981f 100755 (executable)
--- a/all
+++ b/all
@@ -855,8 +855,15 @@ case "$cmd" in
                                        cleanqc=true
                                        shift
                                        ;;
-                               -r)
-                                       debug=release
+                               -r|-p)
+                                       case "$1" in
+                                               -p)
+                                                       debug=release
+                                                       ;;
+                                               -r)
+                                                       debug=profile
+                                                       ;;
+                                       esac
                                        export CC="$CC -g"
                                        case "`$CC -dumpversion`" in
                                                [5-9]*|[1-9][0-9]*|4.[3-9]*|4.[1-9][0-9]*)
@@ -1934,7 +1941,7 @@ case "$cmd" in
                $ECHO "  $SELF checkout|switch <remote>/<branch>"
                $ECHO "  $SELF clean [-m] [-f | -fu | -fU] [-r] [-D]"
                $ECHO "  $SELF clean --reclone"
-               $ECHO "  $SELF compile [-c] [-r] [-0]"
+               $ECHO "  $SELF compile [-c] [-r|-p] [-0]"
                $ECHO "  $SELF each|foreach [-k] command..."
                $ECHO "  $SELF fix_upstream_rebase"
                $ECHO "  $SELF keygen"