From bb46c5ed5705fab0bcaee2e4dd0b42a35bbc9858 Mon Sep 17 00:00:00 2001 From: Alex Mason Date: Mon, 28 Aug 2023 16:17:47 +1000 Subject: [PATCH] Add docs upload script because I'll never remember how --- upload-docs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 upload-docs diff --git a/upload-docs b/upload-docs new file mode 100755 index 0000000..e3c9c40 --- /dev/null +++ b/upload-docs @@ -0,0 +1,10 @@ +#!/bin/sh +set -ex + +dir=$(mktemp -d dist-docs.XXXXXX) +trap 'rm -r "$dir"' EXIT + +# assumes cabal 2.4 or later +cabal haddock --builddir="$dir" --haddock-for-hackage --enable-documentation + +cabal upload --documentation $@ $dir/*-docs.tar.gz \ No newline at end of file