- cd inplace/mingw
- tar -zxf ../../ghc-tarballs/mingw/binutils*.tar.gz
- tar -zxf ../../ghc-tarballs/mingw/gcc-core*.tar.gz
- tar -jxf ../../ghc-tarballs/mingw/libcrypt*.tar.bz2
- tar -zxf ../../ghc-tarballs/mingw/mingw-runtime*.tar.gz
- tar -jxf ../../ghc-tarballs/mingw/perl*.tar.bz2
- tar -zxf ../../ghc-tarballs/mingw/w32api*.tar.gz
- cd ../..
+ (
+ cd inplace/mingw &&
+ tar -zxf ../../ghc-tarballs/mingw/binutils*.tar.gz &&
+ tar -zxf ../../ghc-tarballs/mingw/gcc-core*.tar.gz &&
+ tar -jxf ../../ghc-tarballs/mingw/libcrypt*.tar.bz2 &&
+ tar -zxf ../../ghc-tarballs/mingw/mingw-runtime*.tar.gz &&
+ tar -jxf ../../ghc-tarballs/mingw/perl*.tar.bz2 &&
+ tar -zxf ../../ghc-tarballs/mingw/w32api*.tar.gz &&
+ mv bin/gcc.exe bin/realgcc.exe
+ )
+ inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe