Przeglądaj źródła

build: honour the TMPDIR, TEMP etc. environment variables.

legacy
Sam Hocevar sam 12 lat temu
rodzic
commit
720e5fe399
1 zmienionych plików z 12 dodań i 2 usunięć
  1. +12
    -2
      build/run-bitten.sh

+ 12
- 2
build/run-bitten.sh Wyświetl plik

@@ -1,12 +1,22 @@
#!/bin/sh

conffile="`mktemp -q /tmp/lol-bitten-XXXXXXXX 2>/dev/null`"
tmpdir="$TMPDIR"
if [ -z "${tmpdir}" ]; then tmpdir="$TEMP"; fi
if [ -z "${tmpdir}" ]; then tmpdir="$TEMPDIR"; fi
if [ -z "${tmpdir}" ]; then tmpdir="$TMP"; fi
if [ -z "${tmpdir}" ]; then tmpdir="/tmp"; fi

conffile="`mktemp -q "${tmpdir}/lol-bitten-XXXXXXXX" 2>/dev/null`"
if [ "${conffile}" = "" ]; then
conffile="`mktemp 2>/dev/null`"
fi
builddir="/tmp/lol-bitten-`whoami`"
builddir="${tmpdir}/lol-bitten-`whoami`"
url="http://lol.zoy.org/builds"

#
# Utility functions
#

append() {
echo "$*" >> "${conffile}"
}


Ładowanie…
Anuluj
Zapisz