summaryrefslogtreecommitdiff
path: root/mk/flavor
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-22 09:59:59 +0000
committerrillig <rillig@pkgsrc.org>2007-11-22 09:59:59 +0000
commitfa10ff91957ec19a61e8288aa1527bea9da71aba (patch)
tree10dc4afcd97e8286a4e21ca4828746adca4fcda3 /mk/flavor
parent2d7b42c2ed45df56add318a4fd1ba069ba6921aa (diff)
downloadpkgsrc-fa10ff91957ec19a61e8288aa1527bea9da71aba.tar.gz
Exit if reduce-depends produces an error.
Diffstat (limited to 'mk/flavor')
-rwxr-xr-xmk/flavor/pkg/list-dependencies6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/flavor/pkg/list-dependencies b/mk/flavor/pkg/list-dependencies
index dd57934b6db..198e3192227 100755
--- a/mk/flavor/pkg/list-dependencies
+++ b/mk/flavor/pkg/list-dependencies
@@ -37,12 +37,14 @@
######################################################################
: ${ECHO:=echo}
-: ${CAT:=cat}
set -e
+trap "exit 1" INT
+
reduce_depends() {
- ${AWK} -f ${PKGSRCDIR}/mk/flavor/pkg/reduce-depends.awk "$1"
+ ${AWK} -f ${PKGSRCDIR}/mk/flavor/pkg/reduce-depends.awk "$1" \
+ || kill -INT $$
}
print_entries() {