build system updated
This commit is contained in:
@@ -59,7 +59,7 @@ while [ $found -ne 0 ]; do
|
||||
cd "${target}"
|
||||
for file in $(find . -type f); do
|
||||
for lib in $(otool -L ${file} | tail -n +2 \
|
||||
| egrep '/usr/local/|/opt/local/|'"${HOME}" \
|
||||
| egrep '/usr/local/|/opt/local/|/opt/X11/|'"${HOME}" \
|
||||
| grep -v $file | awk '{print $1}'); do
|
||||
found=1
|
||||
test -f ${lib##*/} \
|
||||
@@ -86,20 +86,19 @@ if test -n "${QTDIR}"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Step 5: copy or create info.plist
|
||||
infoplist=$(find ${apptarget}/Contents/Resources -name Info.plist)
|
||||
if test -f "${infoplist}"; then
|
||||
cp -a "${infoplist}" ${apptarget}/Contents/Info.plist
|
||||
# Step 5: copy local or create new info.plist
|
||||
if test -f Info.plist; then
|
||||
cp -a Info.plist ${apptarget}/Contents/Info.plist
|
||||
else
|
||||
cat > ${apptarget}/Contents/Info.plist <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<qdict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>${project}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${executablefile##/}</string>
|
||||
<string>${executablefile##*/}</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user