From fbc73c49e9a911aa5a608ec3fc1d1afca64cea02 Mon Sep 17 00:00:00 2001 From: David Lichteblau Date: Sun, 30 Nov 2008 14:49:52 +0100 Subject: [PATCH] release --- build/dist.sh | 29 ----------------------------- dist.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ doc/GNUmakefile | 2 +- doc/atdoc.lisp | 13 +++++++------ doc/index.xml | 2 +- 5 files changed, 57 insertions(+), 37 deletions(-) delete mode 100755 build/dist.sh create mode 100755 dist.sh diff --git a/build/dist.sh b/build/dist.sh deleted file mode 100755 index 8eb5270..0000000 --- a/build/dist.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -set -e - -cd $(dirname $0)/.. -home=$(pwd) -name=$(basename $home) -dir=${name}-$(date --iso) - -TMPDIR=`mktemp -d /tmp/dist.XXXXXXXXXX` -cleanup() { - cd - rm -rf $TMPDIR -} -trap cleanup exit - -sbcl --load doc/atdoc.lisp --eval '(quit)' - -cd $TMPDIR -git clone $home $dir -rm -rf $dir/.git -rsync -a $home/doc $dir/ - -make -C $dir/doc - -tgz=$TMPDIR/${dir}.tgz -tar czf $tgz $dir -gpg -b -a $tgz - -mv $tgz $tgz.asc $home/build/ diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..09a3d95 --- /dev/null +++ b/dist.sh @@ -0,0 +1,48 @@ +#!/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 + +make -C doc + +git tag -f $name_and_date +git archive --prefix=$name_and_date/ $name_and_date | \ + ( cd $TMPDIR && tar xvf - ) + +echo '(progn (load "doc/atdoc.lisp") (quit))' | clbuild lisp + +rsync -a doc $TMPDIR/$name_and_date + +cd $TMPDIR + +tgz=$TMPDIR/${name_and_date}.tgz +tar czf $tgz $name_and_date +gpg -b -a $tgz + +mkdir -p ~/clnet/project/closure/public_html/closure-html/ + +rsync -av \ + $name_and_date/doc/ \ + ~/clnet/project/closure/public_html/closure-html/ + +rsync $tgz $tgz.asc ~/clnet/project/closure/public_html/closure-html/download/ + +rm -f ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz +rm -f ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz.asc + +ln -sf ${name_and_date}.tgz ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz +ln -sf ${name_and_date}.tgz.asc ~/clnet/project/closure/public_html/closure-html/download/closure-html.tar.gz.asc + +echo done +exit 0 +rsync -av ~/clnet/project dlichteblau@common-lisp.net:/ diff --git a/doc/GNUmakefile b/doc/GNUmakefile index bd37010..27d0add 100644 --- a/doc/GNUmakefile +++ b/doc/GNUmakefile @@ -4,7 +4,7 @@ all: index.html installation.html hax.html examples.html %.html: %.xml index.xsl xsltproc index.xsl $< >$@.tmp - mv $@.tmp $@ + mv -f $@.tmp $@ chmod -w $@ .PHONY: push diff --git a/doc/atdoc.lisp b/doc/atdoc.lisp index 717da27..9f575ec 100644 --- a/doc/atdoc.lisp +++ b/doc/atdoc.lisp @@ -1,8 +1,9 @@ -(asdf:operate 'asdf:load-op :closure-html) (asdf:operate 'asdf:load-op :atdoc) -(atdoc:generate-documentation +(asdf:operate 'asdf:load-op :closure-html) + +(atdoc:generate-html-documentation '(:chtml :hax) - "/home/david/src/lisp/closure-html/doc/atdoc/" - :index-title "Closure HTML API reference" - :heading "Closure HTML" - :css "cxml.css") + (merge-pathnames + "doc/atdoc/" + (asdf:component-relative-pathname (asdf:find-system :closure-html))) + :heading "Closure HTML") diff --git a/doc/index.xml b/doc/index.xml index 96f13dc..26233b7 100644 --- a/doc/index.xml +++ b/doc/index.xml @@ -42,7 +42,7 @@

History

-

2008-03-dd

+

2008-11-30