summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorken <unknown>2001-09-23 20:45:24 +0000
committerken <unknown>2001-09-23 20:45:24 +0000
commit9d3bc150a27a864b914f736a8aeef6ad765adaf3 (patch)
tree07779981b8e7c6b8353419175b85c76736a6445c /Makefile
parent349de67a5301e9636c2f88d5f565b823e60b3ed4 (diff)
downloadhaskell-9d3bc150a27a864b914f736a8aeef6ad765adaf3.tar.gz
[project @ 2001-09-23 20:45:24 by ken]
Fix the "find" commands we use to build a source distribution. Previously, it said things like "-exec path/{}", which doesn't work on many find's ({} really should only appear by itself in an argument). Now we pipe the output of find -print to sed and then to sh. I hope the piping to sh doesn't break source distribution creation on Win32. MERGE TO STABLE
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0a8271c182..9b506b3013 100644
--- a/Makefile
+++ b/Makefile
@@ -268,8 +268,8 @@ dist ::
-rm -f $(SRC_DIST_NAME).tar.gz
mkdir $(SRC_DIST_DIR)
mkdir $(SRC_DIST_DIR)/mk
- ( cd $(FPTOOLS_TOP_ABS); $(FIND) $(SRC_DIST_DIRS) -type d \( -name CVS -prune -o -name SRC -prune -o -name tests -prune -o -exec mkdir $(SRC_DIST_DIR)/{} \; \) ; )
- ( cd $(FPTOOLS_TOP_ABS); $(FIND) $(SRC_DIST_DIRS) $(SRC_DIST_FILES) -name CVS -prune -o -name SRC -prune -o -name tests -prune -o -name "*~" -prune -o -name ".cvsignore" -prune -o -name "\#*" -prune -o -name ".\#*" -prune -o -name "log" -prune -o -name "*-SAVE" -prune -o -name "*.orig" -prune -o -name "*.rej" -prune -o ! -type d -exec $(LN_S) $(FPTOOLS_TOP_ABS)/{} $(SRC_DIST_DIR)/{} \; )
+ ( cd $(FPTOOLS_TOP_ABS); $(FIND) $(SRC_DIST_DIRS) -type d \( -name CVS -prune -o -name SRC -prune -o -name tests -prune -o -print \) | sed -e 's\!.*!mkdir "$(SRC_DIST_DIR)/&"!' | sh )
+ ( cd $(FPTOOLS_TOP_ABS); $(FIND) $(SRC_DIST_DIRS) $(SRC_DIST_FILES) -name CVS -prune -o -name SRC -prune -o -name tests -prune -o -name "*~" -prune -o -name ".cvsignore" -prune -o -name "\#*" -prune -o -name ".\#*" -prune -o -name "log" -prune -o -name "*-SAVE" -prune -o -name "*.orig" -prune -o -name "*.rej" -prune -o ! -type d -print | sed -e 's\!.*!$(LN_S) "$(FPTOOLS_TOP_ABS)/&" "$(SRC_DIST_DIR)/&"!' | sh )
# Automatic generation of a MANIFEST file for a source distribution
# tree that is ready to go.