nixpkgs/pkgs/stdenv/mingw/builder.sh
Eelco Dolstra a26e70c2af * Quick attempt at fixing stdenv-mingw.
svn path=/nixpkgs/trunk/; revision=7519
2006-12-31 19:07:33 +00:00

16 lines
293 B
Bash
Executable file

# the other stdenv could change the SHELL variable,
# so we have to remember its value.
origShell=$SHELL
origGcc=$GCC
source $STDENV/setup
mkdir $OUT
SHELL=$origShell
GCC=$origGcc
substitute "$SETUP" "$OUT/setup" \
--subst-var INITIALPATH \
--subst-var GCC \
--subst-var SHELL