Compact syntax parsing fixes
[cxml-rng.git] / dist.sh
blob8504cf54ca02408bb1e98cb2bc0a19bc481627eb
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
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 ~/bob/public_html/cxml-rng/download/
34 rsync -av $name_and_date/doc $name_and_date/*.html $name_and_date/*.css \
35 ~/bob/public_html/cxml-rng/
37 rsync $tgz $tgz.asc ~/bob/public_html/cxml-rng/download/
39 rm -f ~/bob/public_html/cxml-rng/download/cxml-rng.tar.gz
40 rm -f ~/bob/public_html/cxml-rng/download/cxml-rng.tar.gz.asc
42 ln -sf ${name_and_date}.tgz ~/bob/public_html/cxml-rng/download/cxml-rng.tar.gz
43 ln -sf ${name_and_date}.tgz.asc ~/bob/public_html/cxml-rng/download/cxml-rng.tar.gz.asc
45 echo done
46 exit 0
47 rsync -av ~/bob/public_html bob.askja.de