diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-20 07:20:07 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-20 07:20:07 (GMT) |
| commit | e3d59c1d523daa93161dc550f773251f3a42b79c (patch) | |
| tree | 1ef65b3e2f37c78948a7705d462497932465d7de | |
| parent | 5c9efe088bb217b4c6d62cce13415b6e7e14a19b (diff) | |
| download | tcl-e3d59c1d523daa93161dc550f773251f3a42b79c.zip tcl-e3d59c1d523daa93161dc550f773251f3a42b79c.tar.gz tcl-e3d59c1d523daa93161dc550f773251f3a42b79c.tar.bz2 | |
Prevent misleading message:
-bash: pwd: -W: invalid option
pwd: usage: pwd [-LP]"
written to stderr when pwd -W doesn't exist, e.g. on Linux/MacOS/Cygwin or any cross-compile other than Msys2.
| -rw-r--r-- | win/Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index bf05961..b0ddcd7 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -99,7 +99,7 @@ MAN2TCLFLAGS = @MAN2TCLFLAGS@ SRC_DIR = @srcdir@ ROOT_DIR = @srcdir@/.. -TOP_DIR = $(shell cd @srcdir@/..; pwd -W || pwd -P) +TOP_DIR = $(shell cd @srcdir@/..; pwd -W 2>/dev/null || pwd -P) GENERIC_DIR = $(TOP_DIR)/generic TOMMATH_DIR = $(TOP_DIR)/libtommath WIN_DIR = $(TOP_DIR)/win @@ -117,7 +117,7 @@ GENERIC_DIR_NATIVE = $(shell $(CYGPATH) '$(GENERIC_DIR)') TOMMATH_DIR_NATIVE = $(shell $(CYGPATH) '$(TOMMATH_DIR)') WIN_DIR_NATIVE = $(shell $(CYGPATH) '$(WIN_DIR)') ROOT_DIR_NATIVE = $(shell $(CYGPATH) '$(ROOT_DIR)') -ROOT_DIR_WIN_NATIVE = $(shell cd '$(ROOT_DIR)' ; pwd -W || pwd -P) +ROOT_DIR_WIN_NATIVE = $(shell cd '$(ROOT_DIR)' ; pwd -W 2>/dev/null || pwd -P) #GENERIC_DIR_NATIVE = $(GENERIC_DIR) #TOMMATH_DIR_NATIVE = $(TOMMATH_DIR) #WIN_DIR_NATIVE = $(WIN_DIR) |
