Skip to content

Commit

Permalink
Add script to put library docs in a tarball.
Browse files Browse the repository at this point in the history
Fixes idris-lang#1987, because now Edwin will upload them.
  • Loading branch information
david-christiansen committed Mar 19, 2015
1 parent 2d311c1 commit 742cf9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mkpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ git tag v$VERSION -a

cabal sdist

# Generate Idris library docs and put them in lib_docs.tar.gz in the root
make lib_doc
DOCDIR=`mktemp -d /tmp/docsXXXXX`
cp -r libs/base/base_doc "$DOCDIR"
cp -r libs/prelude/prelude_doc "$DOCDIR"
cp -r libs/effects/effects_doc "$DOCDIR"
cp -r libs/contrib/contrib_doc "$DOCDIR"
tar -czvf lib_docs.tar.gz -C "$DOCDIR" prelude_doc base_doc effects_doc contrib_doc

cabal configure --prefix=/usr/local
cabal build
cabal copy --destdir=/tmp/idris-pkg/
Expand Down

0 comments on commit 742cf9c

Please sign in to comment.