pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts I just removed the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1665a476385
branches:  trunk
changeset: 534267:a1665a476385
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 15 07:26:34 2007 +0000

description:
I just removed the $bulklog directory once again, due to running
bin/bulkbuild when instead I wanted to resume the bulk build. To prevent
this frustration, added a warning and a five second waiting period.

diffstat:

 pkgtools/pbulk/files/pbulk/scripts/pre-build |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r a29f8503e5ef -r a1665a476385 pkgtools/pbulk/files/pbulk/scripts/pre-build
--- a/pkgtools/pbulk/files/pbulk/scripts/pre-build      Mon Oct 15 07:06:02 2007 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pre-build      Mon Oct 15 07:26:34 2007 +0000
@@ -1,5 +1,5 @@
 #!@SH@
-# $NetBSD: pre-build,v 1.4 2007/09/21 13:42:54 rillig Exp $
+# $NetBSD: pre-build,v 1.5 2007/10/15 07:26:34 rillig Exp $
 #
 # Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -34,6 +34,12 @@
 
 set -e
 
+if [ -d "${bulklog}" ]; then
+       echo "Warning: All log files of the previous pbulk run will be"
+       echo "removed in 5 seconds. If you want to abort, press Ctrl-C."
+       sleep 5
+fi
+
 rm -rf "${bulklog}" || true
 mkdir -p "${bulklog}" "${loc}"
 



Home | Main Index | Thread Index | Old Index