summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg/pkg.pl
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-11-07 21:00:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-11-07 21:00:30 +0000
commitd1f0aa9e582eda5f512552b5334d21f61bb9a698 (patch)
tree22d59b63ae8bc73f2b5c4ca8facb647aaefc4fe5 /usr.sbin/pkg/pkg.pl
parentca7ba38a4463146b189427c5eacac456fe338d2e (diff)
Recognize @libdepend, even though it doesn't do anything smarter with it
than @newdepend for now.
Diffstat (limited to 'usr.sbin/pkg/pkg.pl')
-rw-r--r--usr.sbin/pkg/pkg.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg/pkg.pl b/usr.sbin/pkg/pkg.pl
index 8afaed25576..01484a98136 100644
--- a/usr.sbin/pkg/pkg.pl
+++ b/usr.sbin/pkg/pkg.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg.pl,v 1.4 2001/07/14 14:20:11 espie Exp $
+# $OpenBSD: pkg.pl,v 1.5 2001/11/07 21:00:29 espie Exp $
#
# Copyright (c) 2001 Marc Espie.
#
@@ -265,6 +265,13 @@ sub solve_dependencies
}
push(@{$verify{$name}}, [$pattern, $def]);
push(@lines, "\@comment newdepend $name:$pattern:$def");
+ } elsif (m/^\@libdepend\s+/) {
+ my ($libspec, $name, $pattern, $def) = split(/\:/, $');
+ unless (defined $verify{$name}) {
+ $verify{$name} = [];
+ }
+ push(@{$verify{$name}}, [$pattern, $def]);
+ push(@lines, "\@comment libdepend $libspec:$name:$pattern:$def");
} else {
push(@lines, $_);
}