]> git.cameronkatri.com Git - apple_cmds.git/blob - text_cmds/xcodescripts/grep_variant_links.sh
setup.sh: Initial commit
[apple_cmds.git] / text_cmds / xcodescripts / grep_variant_links.sh
1 #!/bin/sh
2 #
3 # This script phase cannot be run in the "grep" target itself, because Strip/CodeSign/etc are
4 # after all other phases. Running it in the aggregate target guarantees that the grep variants
5 # are really linked to the actual stripped/signed grep binary.
6 #
7
8 set -ex
9
10 for variant in e f z ze zf bz bze bzf; do
11 ln ${DSTROOT}/usr/bin/grep ${DSTROOT}/usr/bin/${variant}grep
12 ln ${DSTROOT}/usr/share/man/man1/grep.1 ${DSTROOT}/usr/share/man/man1/${variant}grep.1
13 done