#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# sunw-history-package
# A simple program to generate the actions contained in the SUNW package
# that maps between the old (pre build-133) and new ips package names.
#
$|=1;
# gather some data
$package = $1;
$depends{$1} = 1;
}
}
# generate the manifest actions
print <<EOF;
set name=pkg.fmri value=pkg:/$package
set name=pkg.renamed value=true
set name=org.opensolaris.consolidation value=\$(CONSOLIDATION)
set name=variant.opensolaris.zone value=global value=nonglobal
set name=variant.arch value=\$(ARCH)
EOF
print "depend fmri=$_ type=require\n"
}
}
print <<EOF;
Usage: $program (--package (new-ips-name)) ...
EOF
exit(1);
}
# find all SUNW packages that require the supplied packages
$SUNWpackages{$_} = 1;
}
}
# generate manifests for each SUNWpackage
}
}
#
# Main execution starts here.
#
main();