]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Revert "remove verbose from my script"
authorLockl00p <hakzstudios@gmail.com>
Thu, 28 Sep 2023 20:19:36 +0000 (20:19 +0000)
committerLockl00p <hakzstudios@gmail.com>
Thu, 28 Sep 2023 20:19:36 +0000 (20:19 +0000)
This reverts commit dd8b2b77508d0e67a3e14eec4099656e244a20f4

misc/tools/all/emscripten.subr
misc/tools/all/xonotic.subr

index 9dacac94577606ec795c7038029005fce60e5669..fb90f5411e9ca1ecdf385f26bcfffe98a0b83fb3 100755 (executable)
@@ -1,23 +1,16 @@
-#!/bin/bash
-
-
-
-
+#Check for Emscripten
 cleand0=false
 cleandp=false
 cleanqcc=false
 cleanqc=false
 compiled0=
-
-#Check for Emscripten
 if [ -z $EMSDK ]
 then
     echo "EMSDK not installed/set up correctly, cloning and setting up temporarily"
-       echo $(pwd)
-       mkdir .tmp
+       mkdir -f .tmp
     git clone "https://github.com/emscripten-core/emsdk" ".tmp/emsdk"
-    .tmp/emsdk/emsdk install latest
-    .tmp/emsdk/emsdk activate latest
+    .tmp/emsdk install latest
+    .tmp/emsdk activate latest
     . .tmp/emsdk/emsdk_env.sh
     
 fi
@@ -92,13 +85,14 @@ elif [ -n "$1" ]; then
        BAD_TARGETS=
        TARGETS_SAVE=$TARGETS
        TARGETS=
-       echo $1
        for X in $1; do
                case "$X" in
                        sdl)
                                TARGETS="$TARGETS sdl-$debug"
                                ;;
                        dedicated)
+                export MAKE="make"
+                export CC="gcc"
                                TARGETS="$TARGETS sv-$debug"
                                ;;
                        *)
@@ -134,24 +128,24 @@ compiled0=false
 if $compiled0; then
        if $cleand0; then
                if [ -f Makefile ]; then
-                        $MAKE $MAKEFLAGS distclean
+                       verbose $MAKE $MAKEFLAGS distclean
                fi
        fi
        if ! [ -f Makefile ]; then
-                sh autogen.sh
-                emconfigure ./configure
+               verbose sh autogen.sh
+               verbose emconfigure ./configure
        fi
-        $MAKE $MAKEFLAGS
+       verbose $MAKE $MAKEFLAGS
 fi
- cd "$d0/gmqcc"
+verbose cd "$d0/gmqcc"
 MAKE="make"
 if $cleanqcc; then
-        $MAKE $MAKEFLAGS clean
+       verbose $MAKE $MAKEFLAGS clean
 fi
 if [ -n "$WE_HATE_OUR_USERS" ]; then
-        $MAKE $MAKEFLAGS gmqcc.exe
+       verbose $MAKE $MAKEFLAGS gmqcc.exe
 else
-        $MAKE $MAKEFLAGS gmqcc
+       verbose $MAKE $MAKEFLAGS gmqcc
 fi
 
 if [ -n "$MSYSTEM" ]; then
@@ -159,9 +153,9 @@ if [ -n "$MSYSTEM" ]; then
 else
        DATAMAKE=make
 fi
- cd "$d0/data/xonotic-data.pk3dir"
+verbose cd "$d0/data/xonotic-data.pk3dir"
 if $cleanqc; then
-        ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS clean
+       verbose ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS clean
 fi
- ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS
+verbose ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS
 # 4 levels up: data, xonotic-data, qcsrc, server
index 283a810d353f7b8fc8feac9be9b06541cfdcdd96..5876ccfa2120fdac3b2b4830b2c15b08d85c68f9 100755 (executable)
@@ -23,7 +23,7 @@ case "$cmd" in
                done
                ;;
        compile-emscripten)
-       bash misc/tools/all/emscripten.subr $1
+       misc/tools/all/emscripten.subr $1
        ;;
        compile)
                cleand0=false