]> de.git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/all/release.subr
Parallel build fixes and minor cleanups
[xonotic/xonotic.git] / misc / tools / all / release.subr
index cba2bd22f593db1257cd7d35c1ec98b6c5ebdbdc..68172675c4d7e67f3b290395f393c5e5d5403727 100644 (file)
@@ -228,7 +228,7 @@ case "$cmd" in
                esac
                case " $HOSTS_THAT_ARE_SCHROOT " in
                        *\ $host\ *)
-                               schroot="schroot -c $host --"
+                               schroot="schroot -c $host --preserve-environment --"
                                ;;
                esac
                case " $HOSTS_THAT_ARE_MYSELF $HOSTS_THAT_ARE_SCHROOT " in
@@ -307,11 +307,13 @@ case "$cmd" in
                targetdir=$3
                verbose mkdir -p "$targetdir"
                (
-                       cd "misc/buildsrc"
+                       cd "$d0/misc/buildsrc"
                        verbose ./dlls.sh clean "$buildpath"
                        verbose ./dlls.sh all "$buildpath" "$arch"
                )
                verbose cp -v $buildpath/out/$arch/* "$targetdir"
+
+               # SDL2
                verbose mkdir -p "$d0/misc/builddeps/$arch/"
                verbose rsync --delete -avP "$buildpath/pkg/$arch/sdl" "$d0/misc/builddeps/$arch/"
                # PKG_CONFIG HACK: avoids needing to modify sdl2-config