Add an XXX comment about a small inefficiency. There's no sense in
fixing it, but I think it should be documented.
This commit is contained in:
parent
b7363932f3
commit
b7e58d0da7
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=9598
1 changed files with 6 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
# 2 - failure in CVS operations
|
# 2 - failure in CVS operations
|
||||||
# 3 - failure in make 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;
|
rm -f $LOGFILE 2>/dev/null;
|
||||||
touch $LOGFILE;
|
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'`";
|
cond="X`date '+%u'` = X7 `echo $subtrees | sed -E 's/([^ ]*)/-o ! -d \1/g'`";
|
||||||
if [ $cond ]; then
|
if [ $cond ]; then
|
||||||
# Remove the old copies.
|
# Remove the old copies.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue