From: sof Date: Tue, 30 Jul 2002 03:42:56 +0000 (+0000) Subject: [project @ 2002-07-30 03:42:56 by sof] X-Git-Tag: Approx_11550_changesets_converted~1789 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=611b0cae64bb3403d0bac78e8a1786a4a6e5061a;p=ghc-hetmet.git [project @ 2002-07-30 03:42:56 by sof] hc-file-bundle: * only include the .hsc-derived .hs files that exist in the build tree. * updated to include current happy-derived .hs files --- diff --git a/Makefile b/Makefile index c338a80..e2095f0 100644 --- a/Makefile +++ b/Makefile @@ -296,19 +296,20 @@ hc-file-bundle : project-check $(LN_S) . $(ProjectNameShort)-$(ProjectVersion) $(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \ $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ - $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \ + $(ProjectNameShort)-$(ProjectVersion)/libraries \ $(ProjectNameShort)-$(ProjectVersion)/hslibs \ \( -name "*.hc" -o -name "*_hsc.[ch]" -o -name "*_stub.[ch]" \) -print > hc-files-to-go - $(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \ - $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ - $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \ - $(ProjectNameShort)-$(ProjectVersion)/hslibs \ - -name "*.hsc" -print | sed 's/hsc$$/hs/g' >> hc-files-to-go + @for f in `$(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler $(ProjectNameShort)-$(ProjectVersion)/ghc/driver $(ProjectNameShort)-$(ProjectVersion)/libraries $(ProjectNameShort)-$(ProjectVersion)/hslibs -name "*.hsc" -print` ""; do \ + if test "x$$f" != "x" && test -e `echo "$$f" | sed 's/hsc$$/hs/g'`; then \ + echo `echo "$$f" | sed 's/hsc$$/hs/g' ` >> hc-files-to-go ; \ + fi; \ + done; echo $(ProjectNameShort)-$(ProjectVersion)/libraries/base/GHC/PrimopWrappers.hs >> hc-files-to-go echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/*.hs-incl >> hc-files-to-go echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/parser/Parser.hs >> hc-files-to-go + echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/parser/ParserCore.hs >> hc-files-to-go echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/main/ParsePkgConf.hs >> hc-files-to-go - echo $(ProjectNameShort)-$(ProjectVersion)/hslibs/hssource/HsParser.hs >> hc-files-to-go + echo $(ProjectNameShort)-$(ProjectVersion)/libraries/haskell-src/Language/Haskell/Parser.hs >> hc-files-to-go tar czf $(ProjectNameShort)-$(ProjectVersion)-$(TARGETPLATFORM)-hc.tar.gz `cat hc-files-to-go` CLEAN_FILES += hc-files-to-go *-hc.tar.gz