]>
Commit | Line | Data |
---|---|---|
f1a1da6c A |
1 | # |
2 | # Copyright (c) 2012-2013 Apple Inc. All rights reserved. | |
3 | # | |
4 | # @APPLE_LICENSE_HEADER_START@ | |
5 | # | |
6 | # This file contains Original Code and/or Modifications of Original Code | |
7 | # as defined in and that are subject to the Apple Public Source License | |
8 | # Version 2.0 (the 'License'). You may not use this file except in | |
9 | # compliance with the License. Please obtain a copy of the License at | |
10 | # http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | # file. | |
12 | # | |
13 | # The Original Code and all software distributed under the License are | |
14 | # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
15 | # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
16 | # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
17 | # FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
18 | # Please see the License for the specific language governing rights and | |
19 | # limitations under the License. | |
20 | # | |
21 | # @APPLE_LICENSE_HEADER_END@ | |
22 | # | |
23 | ||
24 | if [ "$ACTION" = installhdrs ]; then exit 0; fi | |
25 | if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ]; then exit 0; fi | |
26 | ||
27 | mkdir -p "$DSTROOT"/usr/share/man/man2 || true | |
28 | mkdir -p "$DSTROOT"/usr/share/man/man3 || true | |
29 | mkdir -p "$DSTROOT"/usr/local/share/man/man2 || true | |
30 | mkdir -p "$DSTROOT"/usr/local/share/man/man3 || true | |
31 | ||
32 | # Copy man pages | |
33 | cd "$SRCROOT"/man | |
34 | ||
35 | BASE_PAGES="pthread_kill.2 \ | |
36 | pthread_sigmask.2" | |
37 | ||
38 | cp $BASE_PAGES "$DSTROOT"/usr/share/man/man2 | |
39 | ||
40 | BASE_PAGES="pthread.3 \ | |
41 | pthread_atfork.3 \ | |
42 | pthread_attr.3 \ | |
43 | pthread_attr_init_destroy.3 \ | |
44 | pthread_attr_set_getdetachstate.3 \ | |
45 | pthread_attr_set_getinheritsched.3 \ | |
46 | pthread_attr_set_getschedparam.3 \ | |
47 | pthread_attr_set_getschedpolicy.3 \ | |
48 | pthread_attr_set_getscope.3 pthread_attr_set_getstackaddr.3 \ | |
49 | pthread_attr_set_getstacksize.3 \ | |
50 | pthread_cancel.3 \ | |
51 | pthread_cleanup_pop.3 \ | |
52 | pthread_cleanup_push.3 \ | |
53 | pthread_cond_broadcast.3 \ | |
54 | pthread_cond_destroy.3 \ | |
55 | pthread_cond_init.3 \ | |
56 | pthread_cond_signal.3 \ | |
57 | pthread_cond_timedwait.3 \ | |
58 | pthread_cond_wait.3 \ | |
59 | pthread_condattr.3 \ | |
60 | pthread_create.3 \ | |
61 | pthread_detach.3 \ | |
62 | pthread_equal.3 \ | |
63 | pthread_exit.3 \ | |
64 | pthread_getschedparam.3 \ | |
65 | pthread_getspecific.3 \ | |
66 | pthread_join.3 \ | |
67 | pthread_key_create.3 \ | |
68 | pthread_key_delete.3 \ | |
964d3577 | 69 | pthread_main_np.3 \ |
f1a1da6c A |
70 | pthread_mutex_destroy.3 \ |
71 | pthread_mutex_init.3 \ | |
72 | pthread_mutex_lock.3 \ | |
73 | pthread_mutex_trylock.3 \ | |
74 | pthread_mutex_unlock.3 \ | |
75 | pthread_mutexattr.3 \ | |
76 | pthread_once.3 \ | |
77 | pthread_rwlock_destroy.3 \ | |
78 | pthread_rwlock_init.3 \ | |
79 | pthread_rwlock_rdlock.3 \ | |
80 | pthread_rwlock_unlock.3 \ | |
81 | pthread_rwlock_wrlock.3 \ | |
82 | pthread_rwlockattr_destroy.3 \ | |
83 | pthread_rwlockattr_getpshared.3 \ | |
84 | pthread_rwlockattr_init.3 \ | |
85 | pthread_rwlockattr_setpshared.3 \ | |
86 | pthread_self.3 \ | |
87 | pthread_setcancelstate.3 \ | |
88 | pthread_setspecific.3" | |
89 | ||
90 | cp $BASE_PAGES "$DSTROOT"/usr/share/man/man3 | |
91 | ||
92 | # Make hard links | |
93 | ||
94 | cd "$DSTROOT"/usr/share/man/man3 | |
95 | ||
96 | chown ${INSTALL_OWNER}:${INSTALL_GROUP} $BASE_PAGES | |
97 | chmod $INSTALL_MODE_FLAG $BASE_PAGES | |
98 | ||
99 | ln -fh pthread_getschedparam.3 pthread_setschedparam.3 | |
100 | ln -fh pthread_rwlock_rdlock.3 pthread_rwlock_tryrdlock.3 | |
101 | ln -fh pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3 | |
102 | ||
103 | for M in \ | |
104 | pthread_attr_destroy.3 \ | |
105 | pthread_attr_getdetachstate.3 \ | |
106 | pthread_attr_getinheritsched.3 \ | |
107 | pthread_attr_getschedparam.3 \ | |
108 | pthread_attr_getschedpolicy.3 \ | |
109 | pthread_attr_getscope.3 \ | |
110 | pthread_attr_getstackaddr.3 \ | |
111 | pthread_attr_getstacksize.3 \ | |
112 | pthread_attr_init.3 \ | |
113 | pthread_attr_setdetachstate.3 \ | |
114 | pthread_attr_setinheritsched.3 \ | |
115 | pthread_attr_setschedparam.3 \ | |
116 | pthread_attr_setschedpolicy.3 \ | |
117 | pthread_attr_setscope.3 \ | |
118 | pthread_attr_setstackaddr.3 \ | |
119 | pthread_attr_setstacksize.3 \ | |
120 | ; do | |
121 | ln -fh pthread_attr.3 $M | |
122 | done | |
123 | ||
124 | for M in \ | |
125 | pthread_mutexattr_destroy.3 \ | |
126 | pthread_mutexattr_getprioceiling.3 \ | |
127 | pthread_mutexattr_getprotocol.3 \ | |
128 | pthread_mutexattr_gettype.3 \ | |
129 | pthread_mutexattr_init.3 \ | |
130 | pthread_mutexattr_setprioceiling.3 \ | |
131 | pthread_mutexattr_setprotocol.3 \ | |
132 | pthread_mutexattr_settype.3 \ | |
133 | ; do | |
134 | ln -fh pthread_mutexattr.3 $M | |
135 | done | |
136 | ||
137 | for M in \ | |
138 | pthread_condattr_destroy.3 \ | |
139 | pthread_condattr_init.3 \ | |
140 | ; do | |
141 | ln -fh pthread_condattr.3 $M | |
142 | done | |
143 | ||
144 | for M in \ | |
145 | pthread_setcanceltype.3 \ | |
146 | pthread_testcancel.3 \ | |
147 | ; do | |
148 | ln -fh pthread_setcancelstate.3 $M | |
149 | done |