Fix making bindists
authorIan Lynagh <igloo@earth.li>
Thu, 21 Aug 2008 22:35:37 +0000 (22:35 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 21 Aug 2008 22:35:37 +0000 (22:35 +0000)
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.

mk/bindist.mk

index 2ab0259..00421cd 100644 (file)
@@ -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