]>
git.saurik.com Git - apple/shell_cmds.git/blob - xcodescripts/install-files.sh
4 BINDIR
="$DSTROOT"/usr
/bin
5 LIBEXECDIR
="$DSTROOT"/usr
/libexec
6 MANDIR
="$DSTROOT"/usr
/share
/man
7 PAMDIR
="$DSTROOT"/private
/etc
/pam.d
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/["
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
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
23 for builtin in `cat "$SRCROOT/xcodescripts/builtins.txt"`; do
24 echo ... linking
$builtin
25 ln -f "$BINDIR"/alias "$BINDIR/$builtin"
28 for manpage
in `cat "$SRCROOT/xcodescripts/builtins-manpages.txt"`; do
29 echo ... linking
$manpage
30 echo ".so man1/builtin.1" > "$MANDIR/man1/$manpage"
34 # Skip locate and su targets for iOS
35 if [ "$TARGET_NAME" = "All_iOS" ]; then
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 \
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"/man
8/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"/man
8/locate.mklocatedb
.8
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