Correct the regexp used to search for extra packages
authorIan Lynagh <igloo@earth.li>
Sat, 16 Oct 2010 12:34:21 +0000 (12:34 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 16 Oct 2010 12:34:21 +0000 (12:34 +0000)
We weren't ignoring comment lines

rules/extra-packages.mk

index 271bc6d..1cef9ad 100644 (file)
@@ -27,7 +27,7 @@
 #        add P to the list of packages
 
 define extra-packages
-$$(foreach p,$$(patsubst libraries/%,%,$$(wildcard $$(shell grep '^[^ ]\+ \+\(dph\|extra\) \+[^ ]\+ \+[^ ]\+ \+[^ ]\+' packages | sed 's/ .*//'))),\
+$$(foreach p,$$(patsubst libraries/%,%,$$(wildcard $$(shell grep '^[^ #][^ ]* \+\(dph\|extra\) \+[^ ]\+ \+[^ ]\+ \+[^ ]\+' packages | sed 's/ .*//'))),\
     $$(if $$(wildcard libraries/$$p/ghc-packages),\
         $$(eval BUILD_DIRS += libraries/$$p) \
         $$(foreach q,$$(shell cat libraries/$$p/ghc-packages2),$$(eval $$(call extra-package,$$p,$$p/$$q))),\