]> de.git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Add a way to not compile d0_blind_id (./all compile -1).
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Jun 2018 20:01:44 +0000 (22:01 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Jun 2018 20:01:44 +0000 (22:01 +0200)
misc/infrastructure/transifex.cron
misc/tools/all/xonotic.subr

index d18ba320c96ad24a9dc032a1a5a636b3f1f90a91..1e5b08fe1ea42197cc122543018229f62393254d 100755 (executable)
@@ -16,6 +16,7 @@ git reset --hard origin/master
 # Mode parameter:
 #   po:  just update the translations.
 #   all: also update the translation template. Will create a new commit every time, as the date header changes.
 # Mode parameter:
 #   po:  just update the translations.
 #   all: also update the translation template. Will create a new commit every time, as the date header changes.
+export BATCH=true
 sh tx.sh po
 
 if [ x"`git ls-files -dm`" = x".tx/merge-base" ]; then
 sh tx.sh po
 
 if [ x"`git ls-files -dm`" = x".tx/merge-base" ]; then
index 1bd94099929a9a13d4773b69d364e266d23f157c..1c24f3bfb190121e0f65a8c1b966fb3bfb984cbb 100644 (file)
@@ -26,7 +26,7 @@ case "$cmd" in
                cleandp=false
                cleanqcc=false
                cleanqc=false
                cleandp=false
                cleanqcc=false
                cleanqc=false
-               compiled0=false
+               compiled0=
                debug=debug
                if [ -z "$CC" ]; then
                        export CC="gcc"
                debug=debug
                if [ -z "$CC" ]; then
                        export CC="gcc"
@@ -38,6 +38,10 @@ case "$cmd" in
                                        compiled0=true
                                        shift
                                        ;;
                                        compiled0=true
                                        shift
                                        ;;
+                               -1)
+                                       compiled0=false
+                                       shift
+                                       ;;
                                -c)
                                        cleand0=true
                                        cleandp=true
                                -c)
                                        cleand0=true
                                        cleandp=true
@@ -183,7 +187,10 @@ case "$cmd" in
                rm -f conftest
 
                verbose cd "$d0/d0_blind_id"
                rm -f conftest
 
                verbose cd "$d0/d0_blind_id"
-               if ! $compiled0; then
+               if [ -z "$compiled0" ]; then
+                       # In doubt, compile.
+                       compiled0=true
+
                        # compilation of crypto library failed
                        # use binaries then, if we can...
                        mkdir -p .libs
                        # compilation of crypto library failed
                        # use binaries then, if we can...
                        mkdir -p .libs
@@ -191,6 +198,7 @@ case "$cmd" in
                                verbose cp "$d0/misc/buildfiles/win32/libd0_blind_id"-* .libs/
                                verbose cp "$d0/misc/buildfiles/win32/libd0_rijndael"-* .libs/
                                verbose cp "$d0/misc/buildfiles/win32/libgmp"-* .libs/
                                verbose cp "$d0/misc/buildfiles/win32/libd0_blind_id"-* .libs/
                                verbose cp "$d0/misc/buildfiles/win32/libd0_rijndael"-* .libs/
                                verbose cp "$d0/misc/buildfiles/win32/libgmp"-* .libs/
+                               compiled0=false
                        else
                                case "`uname`" in
                                        Linux)
                        else
                                case "`uname`" in
                                        Linux)
@@ -204,20 +212,20 @@ case "$cmd" in
                                                                export CC="$CC -L../../../../misc/builddeps/linux32/gmp/lib"
                                                                export CC="$CC -Wl,-rpath,../../../../misc/builddeps/linux32/gmp/lib"
                                                                MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared LIB_CRYPTO=../../../../misc/builddeps/linux32/d0_blind_id/lib/libd0_blind_id.a LIB_CRYPTO+=../../../../misc/builddeps/linux32/gmp/lib/libgmp.a LIB_CRYPTO_RIJNDAEL=../../../../misc/builddeps/linux32/d0_blind_id/lib/libd0_rijndael.a"
                                                                export CC="$CC -L../../../../misc/builddeps/linux32/gmp/lib"
                                                                export CC="$CC -Wl,-rpath,../../../../misc/builddeps/linux32/gmp/lib"
                                                                MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared LIB_CRYPTO=../../../../misc/builddeps/linux32/d0_blind_id/lib/libd0_blind_id.a LIB_CRYPTO+=../../../../misc/builddeps/linux32/gmp/lib/libgmp.a LIB_CRYPTO_RIJNDAEL=../../../../misc/builddeps/linux32/d0_blind_id/lib/libd0_rijndael.a"
+                                                               compiled0=false
                                                                ;;
                                                        *)
                                                                msg "Always need to compile libd0_blind_id on Linux `uname -m`."
                                                                ;;
                                                        *)
                                                                msg "Always need to compile libd0_blind_id on Linux `uname -m`."
-                                                               compiled0=true
                                                                ;;
                                                esac
                                                ;;
                                        Darwin)
                                                verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_blind_id".* .libs/
                                                verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_rijndael".* .libs/
                                                                ;;
                                                esac
                                                ;;
                                        Darwin)
                                                verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_blind_id".* .libs/
                                                verbose cp "$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libd0_rijndael".* .libs/
+                                               compiled0=false
                                                ;;
                                        *)
                                                msg "Always need to compile libd0_blind_id on `uname`."
                                                ;;
                                        *)
                                                msg "Always need to compile libd0_blind_id on `uname`."
-                                               compiled0=true
                                                ;;
                                esac
                        fi
                                                ;;
                                esac
                        fi