summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-08-23 09:10:45 +0000
committerCarl Worth <cworth@cworth.org>2005-08-23 09:10:45 +0000
commit985c919b9fca504125df024e511eacf42a001985 (patch)
tree4fb13d99364313f7f757d34196ac7c6767903fb3
parent0c2aa6e6abda77b67af91b32721b228097326d6d (diff)
Add docs-publish target to build and push documentation, (since our nightly server-side cron job is not working right now).
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.am15
2 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 161fcfb2..23ae4eb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-08-23 Carl Worth <cworth@cworth.org>
+ * Makefile.am: Add docs-publish target to build and push
+ documentation, (since our nightly server-side cron job is not
+ working right now).
+
+2005-08-23 Carl Worth <cworth@cworth.org>
+
* BUGS:
* src/cairo-xlib-screen.c: Move comment about missing cleanup of
caches on XCloseDisplay from BUGS to a
diff --git a/Makefile.am b/Makefile.am
index 4e5125b0..8487343b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,11 +26,14 @@ DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
# or make release-publish
RELEASE_UPLOAD_HOST = cairographics.org
-RELEASE_UPLOAD_DIR = /srv/cairo.freedesktop.org/www/snapshots
+RELEASE_UPLOAD_BASE = /srv/cairo.freedesktop.org/www
+RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/snapshots
RELEASE_URL_BASE = http://cairographics.org/snapshots
RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org (and CC gnome-announce-list@gnome.org)
-CVS=cvs
+MANUAL_DATED = cairo-manual-`date +%Y%m%d`
+MANUAL_TAR_FILE = $(MANUAL_DATED).tar.gz
+MANUAL_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)
tar_file = $(PACKAGE)-$(VERSION).tar.gz
sha1_file = $(tar_file).sha1
@@ -122,4 +125,12 @@ release-publish: release-upload releases/$(sha1_file)
@echo "Last but not least, do not forget to bump up the micro"
@echo "version component to the next (odd) number and commit."
+# XXX: Depending on all here is rather overkill. We don't really need
+# the library built in order to create the documentation.
+docs-publish: all
+ cp -a doc/public/html $(MANUAL_DATED)
+ tar czf $(MANUAL_TAR_FILE) $(MANUAL_DATED)
+ scp $(MANUAL_TAR_FILE) $(RELEASE_UPLOAD_HOST):$(MANUAL_UPLOAD_DIR)
+ ssh $(RELEASE_UPLOAD_HOST) "cd $(MANUAL_UPLOAD_DIR) && tar xzf $(MANUAL_TAR_FILE) && rm -f manual && ln -s $(MANUAL_DATED) manual && ln -sf $(MANUAL_TAR_FILE) cairo-manual.tar.gz"
+
.PHONY: release-verify-even-micro release-verify-newer release-remove-old release-cleanup-group-sticky release-check release-upload release-publish