userland-incorporator revision 2213
500N/A# The contents of this file are subject to the terms of the 500N/A# Common Development and Distribution License (the "License"). 500N/A# You may not use this file except in compliance with the License. 500N/A# See the License for the specific language governing permissions 500N/A# and limitations under the License. 500N/A# When distributing Covered Code, include this CDDL HEADER in each 500N/A# If applicable, add the following below this CDDL HEADER, with the 500N/A# fields enclosed by brackets "[]" replaced with your own identifying 500N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2087N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 500N/A# incorporator - an utility to incorporate packages in a repo 883N/A # lines should be in the form: 2087N/A # publisher package [r|o] version,5.12-branch:timestamp 2087N/A # or lines should be in the form: 2087N/A # publisher package [r|o] version-branch:timestamp 2087N/A if ((/^(\S+)\s+(\S+)\s+\S?\s+([\d.]+),[\d.]+-([\d.]+):.+$/) || 2087N/A (/^(\S+)\s+(\S+)\s+\S?\s+([\d.]+)-([\d.]+):.+$/)) { 500N/A #printf "returning %s\n", $_->{name} for (@packages); 500N/A printf "depend fmri=%s@%s-%s %s=true type=incorporate\n", 500N/A# print the incorporation 500N/A printf "depend fmri=pkg:/%s@%s-%s %s=true type=incorporate\n",