on master help sign in
Add script to put library docs in a tarball.

Fixes #1987, because now Edwin will upload them.

commit742cf9c8fbd2672af2bab3633ba3ba180c45c272 authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateThu 19 Mar 2015, 18:58 (12 years ago) parent2d311c1
1 file changed+9
mkpkg.sh+9
mkpkg.sh+9
@@ -10,6 +10,15 @@ git tag v$VERSION -a
1010
1111cabal sdist
1212
13+# Generate Idris library docs and put them in lib_docs.tar.gz in the root
14+make lib_doc
15+DOCDIR=`mktemp -d /tmp/docsXXXXX`
16+cp -r libs/base/base_doc "$DOCDIR"
17+cp -r libs/prelude/prelude_doc "$DOCDIR"
18+cp -r libs/effects/effects_doc "$DOCDIR"
19+cp -r libs/contrib/contrib_doc "$DOCDIR"
20+tar -czvf lib_docs.tar.gz -C "$DOCDIR" prelude_doc base_doc effects_doc contrib_doc
21+
1322cabal configure --prefix=/usr/local
1423cabal build
1524cabal copy --destdir=/tmp/idris-pkg/