Skip to content

Instantly share code, notes, and snippets.

@umi-uyura
Created July 2, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umi-uyura/01df35c3df8789a78433 to your computer and use it in GitHub Desktop.
Save umi-uyura/01df35c3df8789a78433 to your computer and use it in GitHub Desktop.
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