1 #!/bin/sh |
|
2 |
|
3 # |
|
4 # CDDL HEADER START |
|
5 # |
|
6 # The contents of this file are subject to the terms of the |
|
7 # Common Development and Distribution License (the "License"). |
|
8 # You may not use this file except in compliance with the License. |
|
9 # |
|
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
11 # or http://www.opensolaris.org/os/licensing. |
|
12 # See the License for the specific language governing permissions |
|
13 # and limitations under the License. |
|
14 # |
|
15 # When distributing Covered Code, include this CDDL HEADER in each |
|
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
17 # If applicable, add the following below this CDDL HEADER, with the |
|
18 # fields enclosed by brackets "[]" replaced with your own identifying |
|
19 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
20 # |
|
21 # CDDL HEADER END |
|
22 # |
|
23 |
|
24 # |
|
25 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
|
26 # |
|
27 |
|
28 if [ -z "$PROTO_DOC" ]; then |
|
29 MACH=`/usr/bin/uname -p` |
|
30 PROTO_DOC=`pwd`/build/prototype/$MACH/usr/share/lib/java/javadoc |
|
31 fi |
|
32 |
|
33 # Output this copyright |
|
34 cat $0 | head -27 | tail -25 |
|
35 |
|
36 # Output pkg manifest |
|
37 cat <<EOF |
|
38 set name=info.classification value="org.opensolaris.category.2008:Applications/Configuration and Preferences" |
|
39 set name=pkg.fmri value=pkg:/system/management/visual-panels/doc@\$(IPS_COMPONENT_VERSION),\$(BUILD_VERSION) |
|
40 set name=pkg.summary value="Visual Panels - API Documentation" |
|
41 set name=org.opensolaris.consolidation value=\$(CONSOLIDATION) |
|
42 set name=org.opensolaris.arc-caseid value=LSARC/2007/392 |
|
43 |
|
44 license ../vpanels.copyright license=Oracle |
|
45 |
|
46 dir path=usr |
|
47 dir path=usr/share |
|
48 dir path=usr/share/lib |
|
49 dir path=usr/share/lib/java |
|
50 EOF |
|
51 |
|
52 # pkgsend doesn't have any way to specify limits on the files it processes, so |
|
53 # just grep for those in $PROTO_DOC |
|
54 echo "$PROTO_DOC" | sed 's#/\(usr/\)# \1#' | read base docprefix |
|
55 pkgsend generate "$base" | ggrep -F "path=$docprefix" | sort | |
|
56 awk -F' ' '{ |
|
57 if ($1=="dir") |
|
58 { |
|
59 print $1" "$5 |
|
60 |
|
61 } else if ($1=="file") |
|
62 { |
|
63 print $1" "$6 |
|
64 } |
|
65 }' |
|
66 |
|
67 exit 0 |
|