Skip to content

Commit

Permalink
Merge pull request #2015 from david-christiansen/issue/1987
Browse files Browse the repository at this point in the history
Add release script step for generating lib doc tarball
  • Loading branch information
david-christiansen committed Mar 20, 2015
2 parents 22d1ae6 + 84d3629 commit 134a227
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 134a227

Please sign in to comment.