mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-26 13:29:37 +00:00
compatibility for old MacOS (find doesn't support -lname option)
This commit is contained in:
parent
812b29dd17
commit
3ef227b418
|
@ -388,8 +388,11 @@ sh "$SRC/prepare-rincludes.sh" "$RINCLUDES" "toolchain/RIncludes"
|
||||||
# and link files from toolchain/CIncludes
|
# and link files from toolchain/CIncludes
|
||||||
function linkheaders()
|
function linkheaders()
|
||||||
{
|
{
|
||||||
find "$1" -lname "../../CIncludes/*" -delete
|
# the following command doesn't work on older Mac OS X versions.
|
||||||
(cd "$1" && find "../../CIncludes/" -exec ln -s {} . \;)
|
# allow it to fail quietly, at worst we leave some dangling symlinks around
|
||||||
|
# in the rare situation that headers are removed from the input directory
|
||||||
|
find "$1" -lname "../../CIncludes/*" -delete || true
|
||||||
|
(cd "$1" && find "../../CIncludes/" -name '*.h' -exec ln -s {} . \;)
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Creating Symlinks for CIncludes and RIncludes..."
|
echo "Creating Symlinks for CIncludes and RIncludes..."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user