summaryrefslogtreecommitdiff
path: root/tools/webupdate
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-06-14 04:59:13 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-06-14 04:59:13 +0000
commitb7e58d0da7a21917aba6acb00d6e19baf91a0137 (patch)
tree84f6a910d924614b8f7322935a8532526630e0b3 /tools/webupdate
parentb7363932f3006c057b39beffb685c317216a9ed6 (diff)
Add an XXX comment about a small inefficiency. There's no sense in
fixing it, but I think it should be documented.
Notes
svn path=/www/; revision=9598
Diffstat (limited to 'tools/webupdate')
-rw-r--r--tools/webupdate7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/webupdate b/tools/webupdate
index cbf5f9ac2b..b09244931a 100644
--- a/tools/webupdate
+++ b/tools/webupdate
@@ -30,7 +30,7 @@
# 2 - failure in CVS operations
# 3 - failure in make operations
#
-# $FreeBSD: www/tools/webupdate,v 1.1 2001/06/06 22:45:43 dd Exp $
+# $FreeBSD: www/tools/webupdate,v 1.2 2001/06/14 04:13:24 dd Exp $
#
#
@@ -72,6 +72,11 @@ cd $BUILDDIR || exit 1;
rm -f $LOGFILE 2>/dev/null;
touch $LOGFILE;
+# XXX If one of the directories in $subtrees doesn't exist, *all* of
+# them will be wiped and checked out again. This should only happen
+# if something went terribly wrong, or if there's a new entry in
+# $subtrees, so I (dd) don't plan on fixing it; there's no sense in
+# optimizing something that should only happen twice a year (if that).
cond="X`date '+%u'` = X7 `echo $subtrees | sed -E 's/([^ ]*)/-o ! -d \1/g'`";
if [ $cond ]; then
# Remove the old copies.