]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Preliminary support for the build.sh script; run and compile work hpbuild
authorDavid Knapp <mazecraze96@gmail.com>
Sun, 1 Dec 2019 22:03:42 +0000 (17:03 -0500)
committerDavid Knapp <mazecraze96@gmail.com>
Sun, 1 Dec 2019 22:03:42 +0000 (17:03 -0500)
misc/tools/all/config.subr
misc/tools/all/xonotic.subr

index 03499ba98cdfec3f7edc38f91882bd688027be5d..3068a9184777a64f2a51c421ce61025832246a48 100644 (file)
@@ -4,10 +4,10 @@ gitsite_url="http://gitlab.com/groups/xonotic/"
 allrepos()
 {
        "$@" .                             xonotic.git                  master         ""
-       "$@" data/xonotic-data.pk3dir      xonotic-data.pk3dir.git      master         ""
+       "$@" data/xonotic-data.pk3dir      xonotic-data.pk3dir.git      hpbuild         ""
        "$@" data/xonotic-music.pk3dir     xonotic-music.pk3dir.git     master         ""
        "$@" data/xonotic-nexcompat.pk3dir xonotic-nexcompat.pk3dir.git master         "no"
-       "$@" darkplaces                    darkplaces.git               div0-stable    "svn"
+       "$@" darkplaces                    darkplaces.git               horsepower    "svn"
        "$@" netradiant                    netradiant.git               master         ""
        "$@" div0-gittools                 div0-gittools.git            master         "no"
        "$@" d0_blind_id                   d0_blind_id.git              master         ""
index 0938974ca9b46bcfa8fd36442cf7de74267d49b7..1a994e4f56833bd0b601d86b31b4c7e7b63a244e 100644 (file)
@@ -289,18 +289,20 @@ case "$cmd" in
                # 4 levels up: data, xonotic-data, qcsrc, server
 
                verbose cd "$d0/darkplaces"
-               if [ x"$BAD_TARGETS" = x" " ]; then
-                       $ECHO "Warning: invalid empty client, default clients will be used."
-               fi
-               if $cleandp; then
-                       verbose $MAKE $MAKEFLAGS clean
-               fi
-               for T in $TARGETS; do
-                       verbose $MAKE $MAKEFLAGS STRIP=: "$@" "$T"
-               done
-               for T in $BAD_TARGETS; do
-                       $ECHO "Warning: discarded invalid client $T."
-               done
+               #if [ x"$BAD_TARGETS" = x" " ]; then
+               #       $ECHO "Warning: invalid empty client, default clients will be used."
+               #fi
+               #if $cleandp; then
+               #       verbose $MAKE $MAKEFLAGS clean
+               #fi
+               #for T in $TARGETS; do
+               #       verbose $MAKE $MAKEFLAGS STRIP=: "$@" "$T"
+               #done
+               #for T in $BAD_TARGETS; do
+               #       $ECHO "Warning: discarded invalid client $T."
+               #done
+
+               verbose ./build.sh --nocache --auto --j8 --config-dir="$d0/data/xonotic-data.pk3dir" --build-dir="$d0/darkplaces" xonotic
 
                verbose "$SELF" update-maps
                ;;
@@ -321,10 +323,10 @@ case "$cmd" in
                        export LD_LIBRARY_PATH="$d0/d0_blind_id/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
                fi
 
-               client=-sdl
+               client=""
                USE_RLWRAP=no
                case "$1" in
-                       dedicated)
+                       sv)
                                client=-$1
                                USE_RLWRAP=
                                shift
@@ -338,15 +340,15 @@ case "$cmd" in
                                ;;
                esac
 
-               if ! [ -x "darkplaces/darkplaces$client" ]; then
-                       if [ -x "darkplaces/darkplaces$client.exe" ]; then
+               if ! [ -x "darkplaces/xonotic$client" ]; then
+                       if [ -x "darkplaces/xonotic$client.exe" ]; then
                                client=$client.exe
                        else
-                               $ECHO "Client darkplaces/darkplaces$client not found, aborting"
+                               $ECHO "Client darkplaces/xonotic$client not found, aborting"
                                exit 1
                        fi
                fi
-               set -- "darkplaces/darkplaces$client" -xonotic "$@"
+               set -- "darkplaces/xonotic$client" -xonotic "$@"
 
                # if pulseaudio is running: USE IT
                if [ -z "$SDL_AUDIODRIVER" ] && ! [ -n "$WE_HATE_OUR_USERS" ] && ! [ x"`uname`" = x"Darwin" ]; then