Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FileMerge.appを単独で起動するfmerge.app生成スクリプト
#!/bin/sh
SHELLSCRIPT="script.sh"
mkdir -p fmerge.app/Contents/{MacOS,Resources}
cat > fmerge.app/Contents/Info.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>${SHELLSCRIPT}</string>
</dict>
</plist>
EOF
cp ${SHELLSCRIPT} fmerge.app/Contents/MacOS/
chmod +x fmerge.app/Contents/MacOS/${SHELLSCRIPT}
#!/bin/sh
cd `dirname $0`
/Applications/Xcode.app/Contents/Applications/FileMerge.app/Contents/MacOS/FileMerge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment