Support for various windows codepages, thanks to Pierre Mai
[cxml/s11.git] / dist.sh
blob46746ea54f87bd9e9d8d5d96d6d348d50e02bcb6
1 #!/bin/sh
2 cd $(dirname $0)
3 home=$(pwd)
4 name=$(basename $home)
5 dir=${name}-$(date --iso)
7 TMPDIR=`mktemp -d /tmp/dist.XXXXXXXXXX`
8 cleanup() {
9 cd
10 rm -rf $TMPDIR
12 trap cleanup exit
14 cd $TMPDIR
15 cvs -d "`cat $home/CVS/Root`" export -r HEAD -d "$dir" "$name"
17 make -C $dir/doc
19 tgz=$TMPDIR/${dir}.tgz
20 tar czf $tgz $dir
21 gpg -b -a $tgz
23 mv $tgz $tgz.asc $home/