From: simonmar Date: Wed, 12 Feb 2003 10:32:38 +0000 (+0000) Subject: [project @ 2003-02-12 10:32:38 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1179 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=49a478ab8bc97e2cbe6958a31cc6f3235c667d09 [project @ 2003-02-12 10:32:38 by simonmar] Adapt the dist target a little to work with the nightly build's new way of building source dists. It now works by building a link tree to the build tree, and doing 'make dist' on the link tree, to avoid destroying the real build tree. This just needed a couple of tweaks to the dist target to work. --- diff --git a/Makefile b/Makefile index 76ba2f9..92c4b13 100644 --- a/Makefile +++ b/Makefile @@ -281,8 +281,8 @@ dist :: -$(RM) $(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 -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 "*~" -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 ) + $(FIND) $(SRC_DIST_DIRS) -type d \( -name CVS -prune -o -name SRC -prune -o -print \) | sed -e 's!.*!mkdir "$(SRC_DIST_DIR)/&"!' | sh + $(FIND) $(SRC_DIST_DIRS) $(SRC_DIST_FILES) -name CVS -prune -o -name SRC -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.