summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormthomas <unknown>2004-10-07 06:38:20 +0000
committermthomas <unknown>2004-10-07 06:38:20 +0000
commita558bffdbf9288a5c6620b9553ec4839c8b904e4 (patch)
tree45ad877fc154ac4a786f637c1847d2a8cb1b51bf /Makefile
parent82a610f1ab49c77b2a31108925c9fd5c89ecd14e (diff)
downloadhaskell-a558bffdbf9288a5c6620b9553ec4839c8b904e4.tar.gz
[project @ 2004-10-07 06:38:20 by mthomas]
Check for shell scripts first - they don't exist on my Windows nightly build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a70d3f4495..d7131420c1 100644
--- a/Makefile
+++ b/Makefile
@@ -327,8 +327,10 @@ endif
ifneq "$($(Project)BinDistShScripts)" ""
binary-dist::
@for i in $($(Project)BinDistShScripts); do \
- echo "Renaming $$i to $$i.sh"; \
- $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i.sh; \
+ if test -x $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i ; then \
+ echo "Renaming $$i to $$i.sh"; \
+ $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i.sh; \
+ fi \
done
endif