X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=bindisttest%2FMakefile;h=2780e5fa9b6b28cfb25f663ea9f1e44ee58cd533;hb=07308413a4b20e70c294b657006327b09b65cfc0;hp=7332bab24a1dd2e46b551946803fc52447697899;hpb=a7d15c389abb953f26a2cefdfde733d76904d19e;p=ghc-hetmet.git diff --git a/bindisttest/Makefile b/bindisttest/Makefile index 7332bab..2780e5f 100644 --- a/bindisttest/Makefile +++ b/bindisttest/Makefile @@ -31,8 +31,11 @@ all: $(RM) HelloWorld HelloWorld.o HelloWorld.hi output # We use the a/b/c subdirectory as configure looks for install-sh in # . .. ../.. and we don't want it to find the build system's install-sh. -# --force-local makes tar not think that c:/foo refers to a remote file - cd a/b/c/ && $(TAR) --force-local -jxf ../../../$(BIN_DIST_TEST_TAR_BZ2) +# +# NB. tar has funny interpretation of filenames sometimes (thinking +# c:/foo is a remote file), so it's safer to bzip and then pipe into +# tar rather than using tar -xjf: + cd a/b/c/ && bzip2 -cd ../../../$(BIN_DIST_TEST_TAR_BZ2) | $(TAR) -xf - ifeq "$(Windows)" "YES" mv a/b/c/$(BIN_DIST_NAME) $(BIN_DIST_INST_DIR) else