]> git.saurik.com Git - apple/libdispatch.git/blob - install_Libsystem_pieces
libdispatch-84.5.5.tar.gz
[apple/libdispatch.git] / install_Libsystem_pieces
1 #!/bin/sh
2 dependencies="Libc \
3 Libc_debug \
4 Libc_profile \
5 CommonCrypto \
6 copyfile \
7 mDNSResponderSystemLibraries \
8 libdyld \
9 Libinfo \
10 keymgr \
11 launchd_libs \
12 Libm \
13 cctools_ofiles \
14 configd_libSystem \
15 Libnotify \
16 quarantine \
17 removefile \
18 Sandbox_libs \
19 Seatbelt_libs \
20 Libsyscall \
21 libclosure \
22 libcache \
23 libdispatch \
24 libunwind \
25 Libcompiler_rt \
26 UserNotification"
27
28 function rcpath() {
29 dir="$1"
30 build="$2"
31 project="$3"
32 train=$(~rc/bin/getTrainForBuild --quiet "$build")
33 update="$train$build"
34 echo ~rc/Software/$train/Updates/$update/$dir/$project
35 }
36
37 if [ $# -eq 1 ]; then build="$1" ; else build=$(sw_vers -buildVersion) ; fi
38
39 DSTROOT=/usr/local/lib/system
40 if [ -n "$ALTUSRLOCALLIBSYSTEM" ]; then
41 DSTROOT="$ALTUSRLOCALLIBSYSTEM"
42 fi
43
44 echo Copying in Libsystem dependencies for $build ...
45 for project in $dependencies ; do
46 echo ... $project
47 ditto $(rcpath Roots "$build" "$project")/usr/local/lib/system "$DSTROOT"
48 done