diff options
author | Darin Morrison <darinmorrison+git@gmail.com> | 2013-09-26 00:08:28 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2013-10-11 23:08:00 -0500 |
commit | feb76385b6eb88ceb8c3bd0a21d9723a607e2944 (patch) | |
tree | 12aed248e3cb25a26e0a2242cd05b03daadc9738 | |
parent | 7186bdb1007cce27bf98ec9d96c9fe1d07099f0b (diff) | |
download | haskell-feb76385b6eb88ceb8c3bd0a21d9723a607e2944.tar.gz |
Fix mkdirhier.sh on OS X 10.9 (#8139)
Mac OS X 10.9 mkdir is apparently stricter than the Mac OS X 10.8
mkdir about which paths are considered valid arguments. For example,
in a typical build on Mac OS X 10.9, the first of the following
invocations of mkdirhier.sh will succeed but the second will fail:
"inplace/bin/mkdirhier" utils/ghc-cabal/dist/build/tmp//. # WORKS
"inplace/bin/mkdirhier" bootstrapping/. # FAILS
Simply prefixing the path arguments with "./" causes both to succeed:
"inplace/bin/mkdirhier" ./utils/ghc-cabal/dist/build/tmp//. # WORKS
"inplace/bin/mkdirhier" ./bootstrapping/. # WORKS
Testing indicates failure on paths satisfying all of these criteria:
- path is suffixed with "/."
- path is only 1 level deep (e.g., "foo/."; _not_ "foo/bar/.")
- path is _not_ prefixed with "./"
This workaround prefixes "./" to the path argument passed to mkdir.
Signed-off-by: Austin Seipp <austin@well-typed.com>
-rw-r--r-- | utils/mkdirhier/mkdirhier.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mkdirhier/mkdirhier.sh b/utils/mkdirhier/mkdirhier.sh index 4c5d5f73f7..80762f41ec 100644 --- a/utils/mkdirhier/mkdirhier.sh +++ b/utils/mkdirhier/mkdirhier.sh @@ -1,4 +1,4 @@ #!/bin/sh -mkdir -p ${1+"$@"} +mkdir -p ${1+"./$@"} |