-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdist.sh
executable file
·53 lines (39 loc) · 1.14 KB
/
dist.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh -e
set -x
cd $(dirname $0)
home=$(pwd)
name=$(basename $home)
name_and_date=${name}-$(date --iso)
TMPDIR=`mktemp -d /tmp/dist.XXXXXXXXXX`
cleanup() {
cd
rm -rf $TMPDIR
}
trap cleanup exit
mkdir -p doc/
make
make -C tutorial/
git tag -f $name_and_date
git archive --prefix=$name_and_date/ $name_and_date | \
( cd $TMPDIR && tar xvf - )
echo '(progn (load "dist.lisp") (quit))' | clbuild lisp
rsync -a doc tutorial $TMPDIR/$name_and_date
cd $TMPDIR
tgz=$TMPDIR/${name_and_date}.tgz
tar czf $tgz $name_and_date
gpg -b -a $tgz
mkdir -p ~/bob/public_html/cxml-stp/download/
rsync -av \
$name_and_date/doc \
$name_and_date/tutorial \
$name_and_date/*.html \
$name_and_date/*.css \
~/bob/public_html/cxml-stp/
rsync $tgz $tgz.asc ~/bob/public_html/cxml-stp/download/
rm -f ~/bob/public_html/cxml-stp/download/cxml-stp.tar.gz
rm -f ~/bob/public_html/cxml-stp/download/cxml-stp.tar.gz.asc
ln -sf ${name_and_date}.tgz ~/bob/public_html/cxml-stp/download/cxml-stp.tar.gz
ln -sf ${name_and_date}.tgz.asc ~/bob/public_html/cxml-stp/download/cxml-stp.tar.gz.asc
echo done
exit 0
rsync -av ~/bob/public_html bob.askja.de