Created
July 2, 2014 14:46
-
-
Save umi-uyura/01df35c3df8789a78433 to your computer and use it in GitHub Desktop.
FileMerge.appを単独で起動するfmerge.app生成スクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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