pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk pbulk-0.29:
details: https://anonhg.NetBSD.org/pkgsrc/rev/ea81700965b7
branches: trunk
changeset: 540598:ea81700965b7
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Apr 04 17:58:59 2008 +0000
description:
pbulk-0.29:
Add bulkbuild-restart script that checks if error/success files exist
and makes sense and continues the previous build if they do.
diffstat:
pkgtools/pbulk/Makefile | 7 ++-
pkgtools/pbulk/PLIST | 3 +-
pkgtools/pbulk/files/pbulk/scripts/Makefile | 4 +-
pkgtools/pbulk/files/pbulk/scripts/bulkbuild-restart | 32 ++++++++++++++++++++
4 files changed, 41 insertions(+), 5 deletions(-)
diffs (89 lines):
diff -r 55851eb626e8 -r ea81700965b7 pkgtools/pbulk/Makefile
--- a/pkgtools/pbulk/Makefile Fri Apr 04 16:58:07 2008 +0000
+++ b/pkgtools/pbulk/Makefile Fri Apr 04 17:58:59 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.36 2008/02/26 13:57:51 joerg Exp $
+# $NetBSD: Makefile,v 1.37 2008/04/04 17:58:59 joerg Exp $
-DISTNAME= pbulk-0.28
+DISTNAME= pbulk-0.29
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
@@ -34,7 +34,8 @@
SUBST_STAGE.tools= post-patch
SUBST_MESSAGE.tools= Fixing references to tools
SUBST_FILES.tools= pbulk.conf scripts/build scripts/build-client-start \
- scripts/bulkbuild scripts/bulkbuild-rebuild scripts/client-clean \
+ scripts/bulkbuild scripts/bulkbuild-rebuild scripts/bulkbuild-restart \
+ scripts/client-clean \
scripts/pkg-build scripts/pkg-up-to-date scripts/pre-build \
scripts/report scripts/scan scripts/scan-client-start scripts/upload \
scripts/compute-packages.awk scripts/create-broken-graph.awk \
diff -r 55851eb626e8 -r ea81700965b7 pkgtools/pbulk/PLIST
--- a/pkgtools/pbulk/PLIST Fri Apr 04 16:58:07 2008 +0000
+++ b/pkgtools/pbulk/PLIST Fri Apr 04 17:58:59 2008 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 2008/01/26 01:57:00 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2008/04/04 17:58:59 joerg Exp $
bin/bulkbuild
bin/bulkbuild-rebuild
+bin/bulkbuild-restart
bin/pbulk-build
bin/pbulk-resolve
bin/pbulk-scan
diff -r 55851eb626e8 -r ea81700965b7 pkgtools/pbulk/files/pbulk/scripts/Makefile
--- a/pkgtools/pbulk/files/pbulk/scripts/Makefile Fri Apr 04 16:58:07 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/Makefile Fri Apr 04 17:58:59 2008 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2008/01/26 01:57:00 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2008/04/04 17:58:59 joerg Exp $
SCRIPTS= build build-client-start bulkbuild bulkbuild-rebuild \
+ bulkbuild-restart \
client-clean pkg-build pkg-up-to-date pre-build report \
scan scan-client-start upload \
compute-packages.awk create-broken-graph.awk \
@@ -10,5 +11,6 @@
SCRIPTSDIR= ${PREFIX}/libexec/pbulk
SCRIPTSDIR_bulkbuild= ${PREFIX}/bin
SCRIPTSDIR_bulkbuild-rebuild= ${PREFIX}/bin
+SCRIPTSDIR_bulkbuild-restart= ${PREFIX}/bin
.include <bsd.prog.mk>
diff -r 55851eb626e8 -r ea81700965b7 pkgtools/pbulk/files/pbulk/scripts/bulkbuild-restart
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/bulkbuild-restart Fri Apr 04 17:58:59 2008 +0000
@@ -0,0 +1,32 @@
+#!@SH@
+# $NetBSD: bulkbuild-restart,v 1.1 2008/04/04 17:58:59 joerg Exp $
+
+. @PBULK_CONFIG@
+
+set -e
+
+check_list() {
+ while read pkg
+ do
+ grep -q "^PKGNAME=${pkg}$" ${loc}/presolve && continue
+ return 1
+ done < "$1"
+ return 0
+}
+
+if [ ! -e ${loc}/success -o ! -e ${loc}/error ]; then
+ restart_build=no
+elif ! check_list ${loc}/success; then
+ restart_build=no
+elif ! check_list ${loc}/error; then
+ restart_build=no
+else
+ restart_build=yes
+fi
+if [ "$restart_build" = "no" ]; then
+ ${script_phase_pre_build}
+ ${script_phase_scan}
+fi
+${script_phase_build}
+${script_phase_report}
+${script_phase_upload}
Home |
Main Index |
Thread Index |
Old Index