[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pkg-kde: commit - rev 205 - / scripts



Author: dato-guest
Date: 2004-11-07 14:13:38 -0700 (Sun, 07 Nov 2004)
New Revision: 205

Added:
   scripts/
   scripts/common
   scripts/update-www
Log:
Created scripts dir, with update-www and common.


Added: scripts/common
===================================================================
--- scripts/common	2004-11-07 20:48:13 UTC (rev 204)
+++ scripts/common	2004-11-07 21:13:38 UTC (rev 205)
@@ -0,0 +1,12 @@
+# $Id$
+# Variables and functions to be available in all scripts. Each scripts
+# requiring them shoud source `dirname $0`/common.
+
+SVN_REPO=file:///svn/pkg-kde
+WWW_DIR=/org/alioth.debian.org/chroot/home/groups/pkg-kde
+
+SCRIPTS_DIR=$WWW_DIR/scripts
+HTDOCS_DIR=$WWW_DIR/htdocs
+CGIBIN_DIR=$WWW_DIR/cgi-bin
+
+# vim: ft=sh


Property changes on: scripts/common
___________________________________________________________________
Name: svn:keywords
   + Id

Added: scripts/update-www
===================================================================
--- scripts/update-www	2004-11-07 20:48:13 UTC (rev 204)
+++ scripts/update-www	2004-11-07 21:13:38 UTC (rev 205)
@@ -0,0 +1,14 @@
+#! /bin/sh
+# $Id$
+#
+# This updates the $HTDOCS_DIR (pkg-kde.alioth.debian.org) pulling
+# changes from SVN. It is called for each commit involving www/ from the
+# hooks/post-commit script.
+#
+# TODO: day shall arrive when the www/ dir is big enough that a full
+# export is too costly. Should think of alternate solutions (e.g., having
+# $HTDOCS_DIR be a svn checkout and issue a svn update).
+
+. `dirname $0`/common
+
+svn export --force $SVN_REPO/www $HTDOCS_DIR


Property changes on: scripts/update-www
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:keywords
   + Id



Reply to: