X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2Fprep-bin-dist-mingw;h=042805a5be1cafd9f6ef69c0f188710a50a2b72a;hb=3972d4fc6dae2e286896557f8da79cbd4124d583;hp=4d462a42ad448e2df85b5f798af4cdb34a1626cd;hpb=3eaf13137ab87e4d6c3404fa0895b49a2a1b93cf;p=ghc-hetmet.git diff --git a/distrib/prep-bin-dist-mingw b/distrib/prep-bin-dist-mingw index 4d462a4..042805a 100644 --- a/distrib/prep-bin-dist-mingw +++ b/distrib/prep-bin-dist-mingw @@ -44,15 +44,23 @@ else fi #Directory where a (cygwin-free) perl binary resides. -export perl_dir=$old_ghc_top +if [ "x${perl_dir}" == "x" ]; then + export perl_dir=$old_ghc_top +fi # # The mingw include, lib, and bin directories; all derived # from ${mingw_top}. # -export mingw_include=$mingw_top/include -export mingw_lib=$mingw_top/lib -export mingw_bin=$mingw_top/bin +if [ "x${mingw_include}" == "x" ]; then + export mingw_include=$mingw_top/include +fi +if [ "x${mingw_lib}" == "x" ]; then + export mingw_lib=$mingw_top/lib +fi +if [ "x${mingw_bin}" == "x" ]; then + export mingw_bin=$mingw_top/bin +fi # Check that we're in an OK place before starting to re-org # the directory tree..