summary refs log tree commit diff
path: root/pkgs/stdenv/mingw/builder.sh
blob: cfafde6b00dc7a94ec56d333ca047f3f95973b83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# the other stdenv could change the SHELL variable,
# so we have to remember its value.
origShell=$SHELL
origGcc=$GCC

source $STDENV/setup
source $SUBSTITUTE

mkdir $OUT

SHELL=$origShell
GCC=$origGcc

substitute "$SETUP" "$OUT/setup" \
    --subst-var INITIALPATH \
    --subst-var GCC \
    --subst-var SHELL