on dev-params help sign in
squeal/squeal-postgresql/docs-upload.sh
18 lines 481 B history raw
1#!/bin/bash
3# Run this script in the top-level of your package directory
4# (where the .cabal file is) to compile documentation and
5# upload it to hackage.
7# Requirements:
8# cabal-install-1.24 (for --for-hackage)
9# haddock 2.17 (for the hyperlinked source)
11set -e
13dir=$(mktemp -d dist-docs.XXXXXX)
14trap 'rm -r "$dir"' EXIT
16cabal configure --builddir="$dir"
17cabal haddock --builddir="$dir" --for-hackage --haddock-option=--hyperlinked-source
18cabal upload -d $dir/*-docs.tar.gz