Changeset 2088


Ignore:
Timestamp:
Nov 18, 2012, 6:00:40 PM (7 years ago)
Author:
sam
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/run-bitten.sh

    r2083 r2088  
    11#!/bin/sh
    22
    3 conffile="`mktemp -q /tmp/lol-bitten-XXXXXXXX 2>/dev/null`"
     3tmpdir="$TMPDIR"
     4if [ -z "${tmpdir}" ]; then tmpdir="$TEMP"; fi
     5if [ -z "${tmpdir}" ]; then tmpdir="$TEMPDIR"; fi
     6if [ -z "${tmpdir}" ]; then tmpdir="$TMP"; fi
     7if [ -z "${tmpdir}" ]; then tmpdir="/tmp"; fi
     8
     9conffile="`mktemp -q "${tmpdir}/lol-bitten-XXXXXXXX" 2>/dev/null`"
    410if [ "${conffile}" = "" ]; then
    511    conffile="`mktemp 2>/dev/null`"
    612fi
    7 builddir="/tmp/lol-bitten-`whoami`"
     13builddir="${tmpdir}/lol-bitten-`whoami`"
    814url="http://lol.zoy.org/builds"
     15
     16#
     17# Utility functions
     18#
    919
    1020append() {
Note: See TracChangeset for help on using the changeset viewer.