Idris-dev/mkpkg.sh

27 lines
703 B
Bash
Raw Normal View History

2014-02-04 01:36:11 +04:00
#!/bin/sh
2014-02-04 20:07:00 +04:00
VERSION=$1
2014-02-04 01:36:11 +04:00
echo "Building version-$VERSION\n\n"
echo "Have you: set the release flag, checked the demos and the tutorial?"
read $foo
2014-02-04 20:07:00 +04:00
git tag v$VERSION -a
2014-02-04 01:36:11 +04:00
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
2014-02-04 01:36:11 +04:00
cabal configure --prefix=/usr/local
cabal build
cabal copy --destdir=/tmp/idris-pkg/
pkgbuild --id org.idris-lang --root /tmp/idris-pkg/ idris-$VERSION.pkg