mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 10:55:18 +00:00
Fix all "export" commands. Fixes some issues with weird shells.
This commit is contained in:
parent
fad8984fa6
commit
155bb8c334
4
all
4
all
@ -21,10 +21,10 @@ ESC=""
|
|||||||
d00=`pwd`
|
d00=`pwd`
|
||||||
case "$0" in
|
case "$0" in
|
||||||
/*/all)
|
/*/all)
|
||||||
export d0=${0%/all}
|
export d0="${0%/all}"
|
||||||
;;
|
;;
|
||||||
*/all)
|
*/all)
|
||||||
export d0=$d00/${0%/all}
|
export d0="$d00/${0%/all}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
$ECHO "Cannot find myself."
|
$ECHO "Cannot find myself."
|
||||||
|
@ -63,7 +63,7 @@ mirrorspeed()
|
|||||||
# now actually time it
|
# now actually time it
|
||||||
(
|
(
|
||||||
set +x
|
set +x
|
||||||
export REPO=$1 # so that the sh -c subshell can use it
|
export REPO="$1" # so that the sh -c subshell can use it
|
||||||
{ measure_time sh -c 'git ls-remote "$REPO" refs/heads/master >/dev/null 2>&1'; } 2>&1 >/dev/null | head -n 1 | cut -d ' ' -f 2 | tr -d . | sed 's,^0*,,' | grep . || echo 0
|
{ measure_time sh -c 'git ls-remote "$REPO" refs/heads/master >/dev/null 2>&1'; } 2>&1 >/dev/null | head -n 1 | cut -d ' ' -f 2 | tr -d . | sed 's,^0*,,' | grep . || echo 0
|
||||||
# unit: clock ticks (depends on what "time" returns
|
# unit: clock ticks (depends on what "time" returns
|
||||||
)
|
)
|
||||||
|
@ -64,7 +64,7 @@ while [ -n "$allfiles" ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
export do_jpeg=true
|
export do_jpeg=true
|
||||||
export dp_jpeg_if_not_dds=false
|
export do_jpeg_if_not_dds=false
|
||||||
export jpeg_qual_rgb=70
|
export jpeg_qual_rgb=70
|
||||||
export jpeg_qual_a=90
|
export jpeg_qual_a=90
|
||||||
export do_dds=false
|
export do_dds=false
|
||||||
|
@ -83,7 +83,7 @@ _check_xonotic_dir() {
|
|||||||
_get_xonotic_dir() {
|
_get_xonotic_dir() {
|
||||||
relative_dir=$(dirname $0)/../..
|
relative_dir=$(dirname $0)/../..
|
||||||
_check_xonotic_dir ${relative_dir}
|
_check_xonotic_dir ${relative_dir}
|
||||||
export XONOTIC_DIR=$(cd ${relative_dir}; pwd)
|
export XONOTIC_DIR="$(cd ${relative_dir}; pwd)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_kill_xonotic() {
|
_kill_xonotic() {
|
||||||
|
Loading…
Reference in New Issue
Block a user