# HG changeset patch # User haftmann # Date 1129732329 -7200 # Node ID 2b435795c9e940e6303448fc2e039c72650e9781 # Parent 7540483e92289695f70d0b49c2f4ad278e37f87d slight improvements for website diff -r 7540483e9228 -r 2b435795c9e9 Admin/makedist --- a/Admin/makedist Wed Oct 19 14:51:12 2005 +0200 +++ b/Admin/makedist Wed Oct 19 16:32:09 2005 +0200 @@ -158,6 +158,7 @@ DISTNAME=$DISTNAME DISTIDENT=$DISTIDENT +DISTBASE=$DISTBASE EOF MOVE=$($FIND Doc \( -type f -a -not -type l -a -not -name pghead.pdf -a \( -name \*.dvi -o -name \*.eps -o -name \*.ps -o -name \*.pdf \) -a -print \) | grep -v 'gfx/.*pdf') diff -r 7540483e9228 -r 2b435795c9e9 Admin/website/build/localconf.at.template.mak --- a/Admin/website/build/localconf.at.template.mak Wed Oct 19 14:51:12 2005 +0200 +++ b/Admin/website/build/localconf.at.template.mak Wed Oct 19 16:32:09 2005 +0200 @@ -6,10 +6,10 @@ #~ OUTPUTROOT=/home/proj/isabelle/website # location of isabelle distribution packages -ISABELLE_DIST=/home/proj/isabelle/dist/dist-Isabelle2005 +ISABELLE_DIST=$(DISTBASE) # location of doc content file -ISABELLE_DOC_CONTENT_FILE=$(ISABELLE_DIST)/Isabelle2005/doc/Contents +ISABELLE_DOC_CONTENT_FILE=$(DISTBASE)/$(DISTIDENT)/doc/Contents # dirs to copy to build target STATICDIRS=css img media misc @@ -34,6 +34,9 @@ # HTML tidy (needs not to be set if tidy usage is disabled, see below) TIDY=tidy +# rsync (if not set, use dumb cp instead) +RSYNC=rsync + # set to a true value to use the "pypager iso-8859-1" hack # (may be neccessary for older versions of HTML tidy) FORCE_ISO_8859_1= diff -r 7540483e9228 -r 2b435795c9e9 Admin/website/build/localconf.sun.template.mak --- a/Admin/website/build/localconf.sun.template.mak Wed Oct 19 14:51:12 2005 +0200 +++ b/Admin/website/build/localconf.sun.template.mak Wed Oct 19 16:32:09 2005 +0200 @@ -6,10 +6,10 @@ #~ OUTPUTROOT=/home/proj/isabelle/website # location of isabelle distribution packages -ISABELLE_DIST=/home/proj/isabelle/dist/dist-Isabelle2005 +ISABELLE_DIST=$(DISTBASE) # location of doc content file -ISABELLE_DOC_CONTENT_FILE=$(ISABELLE_DIST)/Isabelle2005/doc/Contents +ISABELLE_DOC_CONTENT_FILE=$(DISTBASE)/$(DISTIDENT)/doc/Contents # dirs to copy to build target STATICDIRS=css img media misc @@ -34,6 +34,9 @@ # HTML tidy (needs not to be set if tidy usage is disabled, see below) TIDY=tidy +# rsync (if not set, use dumb cp instead) +RSYNC=rsync + # set to a true value to use the "pypager iso-8859-1" hack # (may be neccessary for older versions of HTML tidy) FORCE_ISO_8859_1= diff -r 7540483e9228 -r 2b435795c9e9 Admin/website/build/project.mak --- a/Admin/website/build/project.mak Wed Oct 19 14:51:12 2005 +0200 +++ b/Admin/website/build/project.mak Wed Oct 19 16:32:09 2005 +0200 @@ -8,10 +8,24 @@ rm -rf $(OUTPUTROOT)/dist .PHONY: cleanproject +ifeq ($(RSYNC),) + $(OUTPUTROOT)/dist: $(ISABELLE_DIST) + mkdir -p $@ $(COPY) -vRud $< $@ chmod -R g-w $@ +else + +$(OUTPUTROOT)/dist: $(ISABELLE_DIST) SYNC_ALWAYS + mkdir -p $@ + $(RSYNC) -v -a --delete --delete-after $