]>
git.immae.eu Git - github/fretlink/text-pipes.git/blob - Fu.sh
2 cabal configure
&& cabal build
&& cabal haddock
--hyperlink-source \
3 --html-location='/package/$pkg-version/docs' \
4 --contents-location='/package/$pkg'
6 if [ "${S}" -eq "0" ]; then
9 cp -r "${1}" "${DDIR}" && tar -c -v -z --format=ustar
-f "${DDIR}.tar.gz" "${DDIR}"
11 if [ "${CS}" -eq "0" ]; then
12 echo "Uploading to Hackageā¦"
13 curl
-X PUT
-H 'Content-Type: application/x-tar' -H 'Content-Encoding: gzip' --data-binary "@${DDIR}.tar.gz" "http://${3}:${4}@hackage.haskell.org/package/${1}-${2}/docs"
16 echo "Error when packaging the documentation"
20 echo "Error when trying to build the package."