1
When releasing a new version of Agda, the following procedure can be
4
* Get a clean Agda repository.
6
darcs get http://code.haskell.org/Agda/ Agda.release
9
* Finish the release notes in
10
doc/release-notes/<version-written-with-dashes>.txt.
12
* Update the README, if necessary.
14
* Update the version numbers in Agda.cabal (twice) and
15
src/data/emacs-mode/agda2-mode.el.
17
* Add a second source-repository section to Agda.cabal:
19
source-repository this
21
location: http://code.haskell.org/Agda/
24
* Remove -Werror from Agda.cabal.
26
(Agda uses code generated by Cabal, Paths_Agda, and under some
27
configurations this code gives rise to warnings.)
29
* Ensure that cabal haddock works:
31
cabal configure && cabal haddock
33
* Ensure that the Emacs mode can be compiled without errors or
34
warnings (except for the "cl package required at runtime" warning):
36
(cd src/data/emacs-mode && \
37
emacs --batch -L . -f batch-byte-compile *.el; \
40
* Tag and build source distributions. (Do not forget to record the
45
cabal configure && cabal sdist && cabal check
47
darcs dist --dist-name=Agda-$VERSION
49
* Ensure that all the packages build properly.
53
tar xzf $BASE/Agda-$VERSION.tar.gz
55
make install CABAL_OPTIONS="--prefix=$PWD/usr"
59
tar xzf $BASE/dist/Agda-$VERSION.tar.gz
64
Do not forget to test the Emacs mode.
66
* Upload the Cabal package using cabal upload.
69
cabal upload dist/Agda-$VERSION.tar.gz
71
* Upload the darcs tar-ball to code.haskell.org.
73
scp Agda-$VERSION.tar.gz code.haskell.org:/srv/code/Agda/
75
* Update the download page on the Agda Wiki.
77
* Announce the release of the new version on the Agda mailing list.
79
* Update the version numbers again, so that released and development
80
versions are not confused, and remove the "this" source-repository
81
section from the Cabal file. (This would be unnecessary if we had
82
two repositories, one stable and one for development.)