sunw-history-package revision 5680
62N/A# The contents of this file are subject to the terms of the 62N/A# Common Development and Distribution License (the "License"). 62N/A# You may not use this file except in compliance with the License. 62N/A# See the License for the specific language governing permissions 62N/A# and limitations under the License. 62N/A# When distributing Covered Code, include this CDDL HEADER in each 62N/A# If applicable, add the following below this CDDL HEADER, with the 62N/A# fields enclosed by brackets "[]" replaced with your own identifying 62N/A# information: Portions Copyright [yyyy] [name of copyright owner] 62N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 62N/A# sunw-history-package 62N/A# A simple program to generate the actions contained in the SUNW package 62N/A# that maps between the old (pre build-133) and new ips package names. 62N/A while (<$FP>) { # save what we want 62N/A # generate the manifest actions 62N/Aset name=pkg.fmri value=pkg:/$package 62N/Aset name=pkg.renamed value=true 62N/Aset name=org.opensolaris.consolidation value=\$(CONSOLIDATION) 62N/Aset name=variant.opensolaris.zone value=global value=nonglobal 62N/Aset name=variant.arch value=\$(ARCH) 62N/A print "depend fmri=$_ type=require\n" 62N/AUsage: $program (--package (new-ips-name)) ... 62N/A # find all SUNW packages that require the supplied packages 62N/A # generate manifests for each SUNWpackage 62N/A# Main execution starts here.