mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-11 14:57:30 +03:00
742cf9c8fb
Fixes #1987, because now Edwin will upload them.
27 lines
703 B
Bash
Executable File
27 lines
703 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=$1
|
|
|
|
echo "Building version-$VERSION\n\n"
|
|
echo "Have you: set the release flag, checked the demos and the tutorial?"
|
|
read $foo
|
|
|
|
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/
|
|
pkgbuild --id org.idris-lang --root /tmp/idris-pkg/ idris-$VERSION.pkg
|
|
|