release
[xuriella.git] / dist.sh
blob17f00cd4cd8851d8aa7fbbc038b696386dc3d30d
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 # fixme: manually generated for now
23 # echo '(progn (load "doc/atdoc.lisp") (quit))' | clbuild lisp
25 rsync -a doc $TMPDIR/$name_and_date
27 cd $TMPDIR
29 tgz=$TMPDIR/${name_and_date}.tgz
30 tar czf $tgz $name_and_date
31 gpg -b -a $tgz
33 mkdir -p ~/clnet/project/xuriella/public_html/
35 rsync -av \
36 $name_and_date/doc/ \
37 ~/clnet/project/xuriella/public_html/
39 rsync $tgz $tgz.asc ~/clnet/project/xuriella/public_html/download/
41 rm -f ~/clnet/project/xuriella/public_html/download/xuriella.tar.gz
42 rm -f ~/clnet/project/xuriella/public_html/download/xuriella.tar.gz.asc
44 ln -sf ${name_and_date}.tgz ~/clnet/project/xuriella/public_html/download/xuriella.tar.gz
45 ln -sf ${name_and_date}.tgz.asc ~/clnet/project/xuriella/public_html/download/xuriella.tar.gz.asc
47 echo done
48 exit 0
49 rsync -av ~/clnet/project dlichteblau@common-lisp.net:/