Cross Reference: generate-history
xref
: /
solaris-userland
/
tools
/
generate-history
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
generate-history revision 4811
4811
N/A
# If invoked with -v FUNCTION=name, then just print $1 (s|/|---|).
4811
N/A
# Otherwise we expect to be invoked with TARGET=<whatever>, then if
4811
N/A
# s|/|---| on $1 matches TARGET, we generate a manifest.
4811
N/A
{
4811
N/A
if (substr($1, 1, 1) == "#") { # Skip comments.
4811
N/A
continue
4811
N/A
}
4811
N/A
fmri=$1
4811
N/A
split(fmri, a, "@")
4811
N/A
gsub("/", "---", a[1])
4811
N/A
target = sprintf("%
s.p5m
", a[1])
4811
N/A
if (FUNCTION == "name") {
4811
N/A
printf "%s\n", target
4811
N/A
continue
4811
N/A
}
4811
N/A
if (target != TARGET) {
4811
N/A
continue
4811
N/A
}
4811
N/A
printf "set name=
pkg.fmri
value=pkg:/%s\n", fmri
4811
N/A
if (NF == 2) {
4811
N/A
print "set name=
pkg.renamed
value=true"
4811
N/A
printf "depend type=require fmri=%s\n", $2
4811
N/A
} else {
4811
N/A
print "set name=
pkg.obsolete
value=true"
4811
N/A
}
4811
N/A
print "set name=
org.opensolaris.consolidation
value=$(CONSOLIDATION)"
4811
N/A
exit 0 # We're done; no point continuing.
4811
N/A
}