mirror of
https://github.com/ilyakooo0/squeal.git
synced 2024-09-11 13:57:29 +03:00
19 lines
481 B
Bash
Executable File
19 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run this script in the top-level of your package directory
|
|
# (where the .cabal file is) to compile documentation and
|
|
# upload it to hackage.
|
|
|
|
# Requirements:
|
|
# cabal-install-1.24 (for --for-hackage)
|
|
# haddock 2.17 (for the hyperlinked source)
|
|
|
|
set -e
|
|
|
|
dir=$(mktemp -d dist-docs.XXXXXX)
|
|
trap 'rm -r "$dir"' EXIT
|
|
|
|
cabal configure --builddir="$dir"
|
|
cabal haddock --builddir="$dir" --for-hackage --haddock-option=--hyperlinked-source
|
|
cabal upload -d $dir/*-docs.tar.gz
|