diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-15 07:26:34 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-15 07:26:34 +0000 |
commit | f44cba8d1a52a179801356c1edb3f8876930fa52 (patch) | |
tree | 3f572efe05afbf399b641e8d16c70de0e825a349 /pkgtools | |
parent | 18e47abc5dd578add6e894c6c18bb5c95af9db41 (diff) | |
download | pkgsrc-f44cba8d1a52a179801356c1edb3f8876930fa52.tar.gz |
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 (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pre-build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pre-build b/pkgtools/pbulk/files/pbulk/scripts/pre-build index 2f653015cc9..eca0700d773 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/pre-build +++ b/pkgtools/pbulk/files/pbulk/scripts/pre-build @@ -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>. # 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}" |