From: Ian Lynagh Date: Thu, 21 Aug 2008 22:35:37 +0000 (+0000) Subject: Fix making bindists X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cd134d6eb8e21d85e2340d2eb6177d5b6139aff8;p=ghc-hetmet.git Fix making bindists We were looking for executable things, but not requiring that they were files. So we were adding lots of directories (and thus their contents) to the bindists, massively inflating their size. --- diff --git a/mk/bindist.mk b/mk/bindist.mk index 2ab0259..00421cd 100644 --- a/mk/bindist.mk +++ b/mk/bindist.mk @@ -22,7 +22,7 @@ binary-dist: # Executables -find . -name "*.wrapper" -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null -find $(EXE_DIST_DIR)/setup-config -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null - -find $(EXE_DIST_DIR) -perm /a+x -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null + -find $(EXE_DIST_DIR) -type f -perm /a+x -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