mirror of https://github.com/ioquake/ioq3.git
Fix creating symlinks in make-macosx-app.sh
Create symlink if arch name is found anywhere in info printed by file command, not only if arch name is the last word.
This commit is contained in:
parent
3518e7b22e
commit
2eaee597c9
|
@ -75,11 +75,11 @@ function symlinkArch()
|
||||||
|
|
||||||
pushd "${DSTPATH}" > /dev/null
|
pushd "${DSTPATH}" > /dev/null
|
||||||
|
|
||||||
IS32=`file "${SRCFILE}.${EXT}" | grep "i386" | awk '{print $NF}'`
|
IS32=`file "${SRCFILE}.${EXT}" | grep "i386"`
|
||||||
IS64=`file "${SRCFILE}.${EXT}" | grep "x86_64" | awk '{print $NF}'`
|
IS64=`file "${SRCFILE}.${EXT}" | grep "x86_64"`
|
||||||
ISPPC=`file "${SRCFILE}.${EXT}" | grep "ppc" | awk '{print $NF}'`
|
ISPPC=`file "${SRCFILE}.${EXT}" | grep "ppc"`
|
||||||
|
|
||||||
if [ "${IS32}" == "i386" ]; then
|
if [ "${IS32}" != "" ]; then
|
||||||
if [ ! -L "${DSTFILE}x86.${EXT}" ]; then
|
if [ ! -L "${DSTFILE}x86.${EXT}" ]; then
|
||||||
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86.${EXT}"
|
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86.${EXT}"
|
||||||
fi
|
fi
|
||||||
|
@ -87,7 +87,7 @@ function symlinkArch()
|
||||||
rm "${DSTFILE}x86.${EXT}"
|
rm "${DSTFILE}x86.${EXT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${IS64}" == "x86_64" ]; then
|
if [ "${IS64}" != "" ]; then
|
||||||
if [ ! -L "${DSTFILE}x86_64.${EXT}" ]; then
|
if [ ! -L "${DSTFILE}x86_64.${EXT}" ]; then
|
||||||
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86_64.${EXT}"
|
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86_64.${EXT}"
|
||||||
fi
|
fi
|
||||||
|
@ -95,7 +95,7 @@ function symlinkArch()
|
||||||
rm "${DSTFILE}x86_64.${EXT}"
|
rm "${DSTFILE}x86_64.${EXT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${ISPPC}" == "ppc" ]; then
|
if [ "${ISPPC}" != "" ]; then
|
||||||
if [ ! -L "${DSTFILE}ppc.${EXT}" ]; then
|
if [ ! -L "${DSTFILE}ppc.${EXT}" ]; then
|
||||||
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}ppc.${EXT}"
|
ln -s "${SRCFILE}.${EXT}" "${DSTFILE}ppc.${EXT}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue