Fix license header to reflect the actual license of two files
[closure-html.git] / dist.sh
blob09a3d95fb1d4822b44396fb2ad2d1dcf49e6569c
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 "doc/atdoc.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/closure/public_html/closure-html/
34 rsync -av \
35 $name_and_date/doc/ \
36 ~/clnet/project/closure/public_html/closure-html/
38 rsync $tgz $tgz.asc ~/clnet/project/closure/public_html/closure-html/download/
40 rm -f ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz
41 rm -f ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz.asc
43 ln -sf ${name_and_date}.tgz ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz
44 ln -sf ${name_and_date}.tgz.asc ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz.asc
46 echo done
47 exit 0
48 rsync -av ~/clnet/project dlichteblau@common-lisp.net:/