]>
Commit | Line | Data |
---|---|---|
1e9ba8f2 A |
1 | #!/bin/sh |
2 | set -e -x | |
3 | ||
4 | BINDIR="$DSTROOT"/usr/bin | |
5 | LIBEXECDIR="$DSTROOT"/usr/libexec | |
6 | MANDIR="$DSTROOT"/usr/share/man | |
7 | PAMDIR="$DSTROOT"/private/etc/pam.d | |
8 | ||
9 | ln -f "$BINDIR/hexdump" "$BINDIR/od" | |
10 | ln -f "$BINDIR/id" "$BINDIR/groups" | |
11 | ln -f "$BINDIR/id" "$BINDIR/whoami" | |
12 | ln -f "$BINDIR/w" "$BINDIR/uptime" | |
13 | ln -f "$DSTROOT/bin/test" "$DSTROOT/bin/[" | |
14 | ||
15 | install -d -o root -g wheel -m 0755 "$BINDIR" | |
16 | install -d -o root -g wheel -m 0755 "$MANDIR"/man1 | |
17 | install -d -o root -g wheel -m 0755 "$MANDIR"/man8 | |
18 | ||
19 | install -c -o root -g wheel -m 0755 "$SRCROOT"/alias/generic.sh "$BINDIR"/alias | |
20 | install -c -o root -g wheel -m 0644 "$SRCROOT"/alias/builtin.1 "$MANDIR"/man1 | |
21 | ||
22 | set +x | |
23 | for builtin in `cat "$SRCROOT/xcodescripts/builtins.txt"`; do | |
24 | echo ... linking $builtin | |
25 | ln -f "$BINDIR"/alias "$BINDIR/$builtin" | |
26 | done | |
27 | ||
28 | for manpage in `cat "$SRCROOT/xcodescripts/builtins-manpages.txt"`; do | |
29 | echo ... linking $manpage | |
30 | echo ".so man1/builtin.1" > "$MANDIR/man1/$manpage" | |
31 | done | |
32 | set -x | |
33 | ||
34 | # Skip locate and su targets for iOS | |
35 | if [ "$TARGET_NAME" = "All_iOS" ]; then | |
36 | exit 0 | |
37 | fi | |
38 | ||
39 | install -d -o root -g wheel -m 0755 "$LIBEXECDIR" | |
40 | install -c -o root -g wheel -m 0755 "$SRCROOT"/locate/locate/updatedb.sh \ | |
41 | "$LIBEXECDIR"/locate.updatedb | |
42 | install -c -o root -g wheel -m 0644 "$SRCROOT"/locate/locate/locate.updatedb.8 \ | |
43 | "$MANDIR"/man8 | |
44 | install -c -o root -g wheel -m 0755 "$SRCROOT"/locate/locate/concatdb.sh \ | |
45 | "$LIBEXECDIR"/locate.concatdb | |
46 | echo ".so man8/locate.updatedb.8" > "$MANDIR"/man8/locate.concatdb.8 | |
47 | install -c -o root -g wheel -m 0755 "$SRCROOT"/locate/locate/mklocatedb.sh \ | |
48 | "$LIBEXECDIR"/locate.mklocatedb | |
49 | echo ".so man8/locate.updatedb.8" > "$MANDIR"/man8/locate.mklocatedb.8 | |
50 | ||
51 | install -d -o root -g wheel -m 0755 "$PAMDIR" | |
52 | install -c -o root -g wheel -m 0644 "$SRCROOT"/su/su.pam "$PAMDIR"/su | |
deb63bfb A |
53 | |
54 | install -d -o root -g wheel -m 0755 "$DSTROOT"/AppleInternal/Tests/shell_cmds | |
55 | install -o root -g wheel -m 0644 "$SRCROOT"/tests/regress.m4 "$DSTROOT"/AppleInternal/Tests/shell_cmds | |
56 | ||
57 | install -d -o root -g wheel -m 0755 "$DSTROOT"/AppleInternal/CoreOS/BATS/unit_tests | |
58 | install -o root -g wheel -m 0644 "$SRCROOT"/tests/shell_cmds.plist "$DSTROOT"/AppleInternal/CoreOS/BATS/unit_tests |