diff options
author | Ian Lynagh <igloo@earth.li> | 2008-09-24 12:08:40 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-09-24 12:08:40 +0000 |
commit | 64137b1730defb4cb5ed95c54eec26014ee0fb27 (patch) | |
tree | 6f92046b62899e95ff1aedc56f78362b7a61facd | |
parent | 703b1252f70b660e9ae2d33f236c1868d3dca0a9 (diff) | |
download | haskell-64137b1730defb4cb5ed95c54eec26014ee0fb27.tar.gz |
Use test -f rather than test -e, for portability (Solaris)
-rw-r--r-- | libraries/Makefile | 2 | ||||
-rw-r--r-- | mk/bindist.mk | 2 | ||||
-rw-r--r-- | mk/cabal-flags.mk | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libraries/Makefile b/libraries/Makefile index 0f257dab1c..d122031fbb 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -17,7 +17,7 @@ # To add a new library to the tree, do # # darcs get http://darcs.haskell.org/packages/foo -# [ -e foo/configure.ac ] && ( cd foo && autoreconf ) +# [ -f foo/configure.ac ] && ( cd foo && autoreconf ) # make make.library.foo .PHONY: default_target diff --git a/mk/bindist.mk b/mk/bindist.mk index 229a2b1cc0..d84abcf7dc 100644 --- a/mk/bindist.mk +++ b/mk/bindist.mk @@ -35,6 +35,6 @@ endif find . -name "*.js" -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null # And anything else ifneq "$(BINDIST_EXTRAS)" "" - for FILE in $(BINDIST_EXTRAS); do if [ -e $$FILE ]; then echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); fi; done + for FILE in $(BINDIST_EXTRAS); do if [ -f $$FILE ]; then echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); fi; done endif diff --git a/mk/cabal-flags.mk b/mk/cabal-flags.mk index 2e743574cb..7a137ced4d 100644 --- a/mk/cabal-flags.mk +++ b/mk/cabal-flags.mk @@ -38,7 +38,7 @@ endif COMMON_CONFIGURE_FLAGS += $(FLAGGED_CONFIGURE_ARGS) \ --configure-option=--with-cc=$(CC) -COMMON_CONFIGURE_FLAGS += $(shell [ -e $(HSC2HS_INPLACE) ] && \ +COMMON_CONFIGURE_FLAGS += $(shell [ -f $(HSC2HS_INPLACE) ] && \ echo --with-hsc2hs=$(HSC2HS_INPLACE) ) ifeq "$(Windows)" "YES" |