Created
June 10, 2022 07:34
-
-
Save strake/d2058eb9b19b6c282fe415b1676603f6 to your computer and use it in GitHub Desktop.
Script to ease uploading packages to a Hackage instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
src_pkg_path="$(cabal sdist | sed -n '$p')" | |
doc_pkg_path="$(cabal haddock --haddock-for-hackage | sed -n '$p')" | |
set +e | |
cabal upload "$@" "$src_pkg_path" | |
cabal upload -d "$@" "$doc_pkg_path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment