Fix building the extralibs tarball
authorIan Lynagh <igloo@earth.li>
Fri, 19 Sep 2008 13:35:55 +0000 (13:35 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 19 Sep 2008 13:35:55 +0000 (13:35 +0000)
We now need to dig the appropriate lines out of packages, rather than
just catting libraries/extra-packages, in order to find out what the
extralibs are.

Makefile

index 96d0996..ac55576 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -513,7 +513,7 @@ SRC_DIST_FILES += \
 #   - remove a bunch of other files that we know shouldn't be in the dist
 #   - tar up first the extralibs package, then the main source package
 
-EXTRA_LIBS=$(patsubst %, $(SRC_DIST_NAME)/libraries/%, $(shell cat libraries/extra-packages))
+EXTRA_LIBS=$(patsubst %, $(SRC_DIST_NAME)/%, $(shell grep -E "extralibs|dph" packages | grep -v "^#" | sed "s/ .*//"))
 
 SRC_DIST_TARBALL = ghc-$(ProjectVersion)-src.tar.bz2
 SRC_DIST_EXTRALIBS_TARBALL = ghc-$(ProjectVersion)-src-extralibs.tar.bz2