# This predist script ensures that generated source files (the output
# of Alex and Happy, for instance) are included in source
# distributions generated using darcs dist.
#
# There should be a "cabal preprocess" command...

cabal configure           && \
  cabal haddock           && \
  rm -f dist/setup-config && \
  rm -rf dist/doc         && \
  rm -rf dist/build/autogen
