forked from haskell/alex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-sdist.sh
33 lines (30 loc) · 898 Bytes
/
make-sdist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Put the Happy-generated .hs files in the right place in the source dist.
# Not necessary any more, Cabal does this:
# set -e
# rm -f dist/alex-*.tar.gz
# rm -rf dist/alex-*/
# ./Setup sdist
# cd dist
# tar xvzf alex-*.tar.gz
# cd alex-*/
# mkdir dist
# mkdir dist/build
# mv alex dist/build
# cd ..
# tar cvzf alex-*.tar.gz alex-*/
# Steps for doing a release:
# * Source:
# - do the above
# - upload the dist to haskell.org:alex/dist/${version}
# * Documentation:
# - cd doc
# - make html
# - mv alex alex-html
# - tar cvzf alex-doc-html-${version}.tar.gz alex-html
# - scp alex-doc-html-${version}.tar.gz haskell.org:alex/doc
# - ssh haskell.org
# - cd alex/doc
# - tar xvzf alex-doc-html-${version}.tar.gz
# - rm -rf html-OLD
# - mv html html-OLD && mv alex-html html
# * Update the web page (~/darcs/www/alex/index.html), and push it