]> git.saurik.com Git - apple/libinfo.git/blob - xcodescripts/install_files.sh
Libinfo-542.40.3.tar.gz
[apple/libinfo.git] / xcodescripts / install_files.sh
1 #!/bin/bash -e -x
2 # exit immediately on failure
3
4 function InstallHeaders() {
5 DESTDIR="$DSTROOT/$1"
6 shift
7 install -d -o "$INSTALL_OWNER" -g "$INSTALL_GROUP" -m 0755 "$DESTDIR"
8 install -o "$INSTALL_OWNER" -g "$INSTALL_GROUP" -m 0444 "$@" "$DESTDIR"
9 }
10
11 InstallHeaders /usr/include \
12 gen.subproj/ifaddrs.h \
13 lookup.subproj/aliasdb.h \
14 lookup.subproj/bootparams.h \
15 lookup.subproj/grp.h \
16 lookup.subproj/netdb.h \
17 lookup.subproj/printerdb.h \
18 lookup.subproj/pwd.h \
19 membership.subproj/membership.h \
20 membership.subproj/ntsid.h
21
22 InstallHeaders /usr/local/include \
23 gen.subproj/configuration_profile.h \
24 lookup.subproj/ils.h \
25 lookup.subproj/kvbuf.h \
26 lookup.subproj/libinfo.h \
27 lookup.subproj/si_compare.h \
28 lookup.subproj/si_data.h \
29 lookup.subproj/si_module.h \
30 lookup.subproj/thread_data.h
31
32 InstallHeaders /usr/local/include \
33 lookup.subproj/libinfo_muser.h \
34 lookup.subproj/netdb_async.h \
35 membership.subproj/membershipPriv.h
36
37 InstallHeaders /usr/include/rpc \
38 rpc.subproj/auth.h \
39 rpc.subproj/auth_unix.h \
40 rpc.subproj/clnt.h \
41 rpc.subproj/pmap_clnt.h \
42 rpc.subproj/pmap_prot.h \
43 rpc.subproj/pmap_rmt.h \
44 rpc.subproj/rpc.h \
45 rpc.subproj/rpc_msg.h \
46 rpc.subproj/svc.h \
47 rpc.subproj/svc_auth.h \
48 rpc.subproj/types.h \
49 rpc.subproj/xdr.h
50
51 InstallHeaders /usr/include/rpcsvc \
52 nis.subproj/yp_prot.h \
53 nis.subproj/ypclnt.h
54
55 # Don't install man pages for installhdrs, installapi, nor simulator builds
56 if [[ "${ACTION}" == "installhdrs" ]] || [[ "${ACTION}" == "installapi" ]]; then
57 exit 0
58 fi
59
60 if [[ "${PLATFORM_NAME}" =~ "simulator" ]]; then
61 exit 0
62 fi
63
64 function InstallManPages() {
65 for MANPAGE in "$@"; do
66 SECTION=`basename "${MANPAGE/*./}"`
67 MANDIR="$DSTROOT"/usr/share/man/man"$SECTION"
68 install -d -o "$INSTALL_OWNER" -g "$INSTALL_GROUP" -m 0755 "$MANDIR"
69 install -o "$INSTALL_OWNER" -g "$INSTALL_GROUP" -m 0444 "$MANPAGE" "$MANDIR"
70 done
71 }
72
73 function LinkManPages() {
74 MANPAGE=`basename "$1"`
75 SECTION=`basename "${MANPAGE/*./}"`
76 MANDIR="$DSTROOT"/usr/share/man/man"$SECTION"
77 shift
78 for LINK in "$@"; do
79 ln -hf "$MANDIR/$MANPAGE" "$MANDIR/$LINK"
80 done
81 }
82
83 InstallManPages \
84 gen.subproj/getifaddrs.3 \
85 gen.subproj/getifmaddrs.3 \
86 gen.subproj/gethostbyname.3 \
87 gen.subproj/getipnodebyname.3 \
88 gen.subproj/getnetent.3 \
89 gen.subproj/getprotoent.3 \
90 gen.subproj/getservent.3 \
91 gen.subproj/if_indextoname.3 \
92 gen.subproj/inet6_rth_space.3 \
93 gen.subproj/inet6_rthdr_space.3 \
94 gen.subproj/inet6_option_space.3 \
95 gen.subproj/inet6_opt_init.3
96
97 InstallManPages \
98 lookup.subproj/bootparams.5 \
99 lookup.subproj/gai_strerror.3 \
100 lookup.subproj/getaddrinfo.3 \
101 lookup.subproj/getfsent.3 \
102 lookup.subproj/getgrent.3 \
103 lookup.subproj/getgrouplist.3 \
104 lookup.subproj/getnameinfo.3 \
105 lookup.subproj/getnetgrent.3 \
106 lookup.subproj/getpwent.3 \
107 lookup.subproj/initgroups.3
108
109 InstallManPages \
110 membership.subproj/mbr_check_membership.3 \
111 membership.subproj/mbr_uid_to_uuid.3
112
113 InstallManPages \
114 nis.subproj/yp_all.3 \
115 nis.subproj/yp_bind.3 \
116 nis.subproj/yp_first.3 \
117 nis.subproj/yp_get_default_domain.3 \
118 nis.subproj/yp_master.3 \
119 nis.subproj/yp_match.3 \
120 nis.subproj/yp_next.3 \
121 nis.subproj/yp_order.3 \
122 nis.subproj/yp_unbind.3 \
123 nis.subproj/ypclnt.3 \
124 nis.subproj/yperr_string.3 \
125 nis.subproj/ypprot_err.3 \
126 nis.subproj/yp.8
127
128 InstallManPages \
129 rpc.subproj/bindresvport.3 \
130 rpc.subproj/getrpcent.3 \
131 rpc.subproj/getrpcport.3 \
132 rpc.subproj/rpc.3 \
133 rpc.subproj/xdr.3
134
135 InstallManPages \
136 util.subproj/rcmd.3 \
137 util.subproj/hosts.equiv.5
138
139 LinkManPages gethostbyname.3 \
140 endhostent.3 gethostbyaddr.3 gethostbyname2.3 \
141 gethostent.3 herror.3 hstrerror.3 sethostent.3
142
143 LinkManPages getifaddrs.3 \
144 freeifaddrs.3
145
146 LinkManPages getipnodebyname.3 \
147 freehostent.3 getipnodebyaddr.3
148
149 LinkManPages getnetent.3 \
150 endnetent.3 getnetbyaddr.3 getnetbyname.3 setnetent.3
151
152 LinkManPages getprotoent.3 \
153 endprotoent.3 getprotobyname.3 getprotobynumber.3 setprotoent.3
154
155 LinkManPages getservent.3 \
156 endservent.3 getservbyname.3 getservbyport.3 setservent.3
157
158 LinkManPages if_indextoname.3 \
159 if_freenameindex.3 if_nameindex.3 if_nametoindex.3
160
161 LinkManPages inet6_option_space.3 \
162 inet6_option_alloc.3 inet6_option_append.3 \
163 inet6_option_find.3 inet6_option_init.3 inet6_option_next.3
164
165 LinkManPages inet6_rthdr_space.3 \
166 inet6_rthdr_add.3 inet6_rthdr_getaddr.3 \
167 inet6_rthdr_getflags.3 inet6_rthdr_init.3 \
168 inet6_rthdr_lasthop.3 inet6_rthdr_reverse.3 \
169 inet6_rthdr_segments.3
170
171 LinkManPages inet6_opt_init.3 \
172 inet6_opt_append.3 inet6_opt_finish.3 inet6_opt_set_val.3 \
173 inet6_opt_next.3 inet6_opt_find.3 inet6_opt_get_val.3
174
175 LinkManPages getaddrinfo.3 \
176 freeaddrinfo.3
177
178 LinkManPages getfsent.3 \
179 endfsent.3 getfsfile.3 getfsspec.3 getfstype.3 setfsent.3
180
181 LinkManPages getgrent.3 \
182 endgrent.3 getgrgid.3 getgrgid_r.3 getgrnam.3 \
183 getgrnam_r.3 setgrent.3 setgroupent.3
184
185 LinkManPages getnetgrent.3 \
186 endnetgrent.3 innetgr.3 setnetgrent.3
187
188 LinkManPages getpwent.3 \
189 endpwent.3 getpwnam.3 getpwnam_r.3 getpwuid.3 \
190 getpwuid_r.3 setpassent.3 setpwent.3 setpwfile.3 \
191 getpwuuid.3 getpwuuid_r.3
192
193 LinkManPages mbr_uid_to_uuid.3 \
194 mbr_gid_to_uuid.3 mbr_sid_to_uuid.3 mbr_uuid_to_id.3 mbr_uuid_to_sid.3 \
195 mbr_sid_to_string.3 mbr_string_to_sid.3
196
197 LinkManPages mbr_check_membership.3 \
198 mbr_check_service_membership.3
199
200 LinkManPages getrpcent.3 \
201 getrpcbyname.3 getrpcbynumber.3 endrpcent.3 setrpcent.3
202
203 LinkManPages rpc.3 \
204 auth_destroy.3 authnone_create.3 authunix_create.3 \
205 authunix_create_default.3 callrpc.3 clnt_broadcast.3 \
206 clnt_call.3 clnt_control.3 clnt_create.3 clnt_destroy.3 \
207 clnt_freeres.3 clnt_geterr.3 clnt_pcreateerror.3 \
208 clnt_perrno.3 clnt_perror.3 clnt_spcreateerror.3 \
209 clnt_sperrno.3 clnt_sperror.3 clntraw_create.3 \
210 clnttcp_create.3 clntudp_bufcreate.3 clntudp_create.3 \
211 get_myaddress.3 pmap_getmaps.3 pmap_getport.3 pmap_rmtcall.3 \
212 pmap_set.3 pmap_unset.3 regsterrpc.3 rpc_createerr.3 \
213 svc_destroy.3 svc_fds.3 svc_fdset.3 svc_getargs.3 \
214 svc_getcaller.3 svc_getreg.3 svc_getregset.3 svc_register.3 \
215 svc_run.3 svc_sendreply.3 svc_unregister.3 svcerr_auth.3 \
216 svcerr_decode.3 svcerr_noproc.3 svcerr_noprog.3 \
217 svcerr_progvers.3 svcerr_systemerr.3 svcerr_weakauth.3 \
218 svcfd_create.3 svcraw_create.3 svctcp_create.3 \
219 svcudp_bufcreate.3 xdr_accepted_reply.3 xdr_authunix_parms.3 \
220 xdr_callhdr.3 xdr_callmsg.3 xdr_opaque_auth.3 xdr_pmap.3 \
221 xdr_pmaplist.3 xdr_rejected_reply.3 xdr_replymsg.3 \
222 xprt_register.3 xprt_unregister.3
223
224 LinkManPages xdr.3 \
225 xdr_array.3 xdr_bool.3 xdr_bytes.3 xdr_char.3 \
226 xdr_destroy.3 xdr_double.3 xdr_enum.3 xdr_float.3 xdr_free.3 \
227 xdr_getpos.3 xdr_inline.3 xdr_int.3 xdr_long.3 \
228 xdrmem_create.3 xdr_opaque.3 xdr_pointer.3 xdrrec_create.3 \
229 xdrrec_endofrecord.3 xdrrec_eof.3 xdrrec_skiprecord.3 \
230 xdr_reference.3 xdr_setpos.3 xdr_short.3 xdrstdio_create.3 \
231 xdr_string.3 xdr_u_char.3 xdr_u_long.3 xdr_u_short.3 \
232 xdr_union.3 xdr_vector.3 xdr_void.3 xdr_wrapstring.3
233
234 LinkManPages rcmd.3 \
235 iruserok.3 iruserok_sa.3 rcmd_af.3 rresvport.3 rresvport_af.3 ruserok.3
236
237 LinkManPages hosts.equiv.5 \
238 .rhosts.5
239