various docstrings; release
[cxml/s11.git] / dist.sh
blobeed185b3481bfbc8e6add2509715dcc7c0f4edc0
1 #!/bin/sh -e
2 set -x
4 cd $(dirname $0)
5 home=$(pwd)
6 name=$(basename $home)
7 name_and_date=${name}-$(date --iso)
9 TMPDIR=`mktemp -d /tmp/dist.XXXXXXXXXX`
10 cleanup() {
12 rm -rf $TMPDIR
14 trap cleanup exit
16 make -C doc
18 git tag -f $name_and_date
19 git archive --prefix=$name_and_date/ $name_and_date | \
20 ( cd $TMPDIR && tar xvf - )
22 # echo '(progn (load "dist.lisp") (quit))' | clbuild lisp
24 rsync -a doc $TMPDIR/$name_and_date
26 cd $TMPDIR
28 tgz=$TMPDIR/${name_and_date}.tgz
29 tar czf $tgz $name_and_date
30 gpg -b -a $tgz
32 mkdir -p ~/clnet/project/cxml/public_html/
34 rsync -av \
35 $name_and_date/doc/ \
36 ~/clnet/project/cxml/public_html/
38 rsync $tgz $tgz.asc ~/clnet/project/cxml/public_html/download/
40 rm -f ~/clnet/project/cxml/public_html/download/cxml.tar.gz
41 rm -f ~/clnet/project/cxml/public_html/download/cxml.tar.gz.asc
43 ln -sf ${name_and_date}.tgz ~/clnet/project/cxml/public_html/download/cxml.tar.gz
44 ln -sf ${name_and_date}.tgz.asc ~/clnet/project/cxml/public_html/download/cxml.tar.gz.asc
46 echo done
47 exit 0
48 rsync -av ~/bob/public_html bob.askja.de