#!/bin/sh # This script localize the built application cd macosx/i18n/ export LNG=`ls *strings | sed 's/.strings//g' | sed 's/Localizable//g'` cd ../../$1/Contents/Resources for l in $LNG do cp -r English.lproj $l.lproj cp ../../../macosx/i18n/$l.strings $l.lproj/Localizable.strings done echo Generating Info.plist with correct version information cd .. echo " CFBundleDevelopmentRegion English CFBundleDisplayName HandBrake CFBundleExecutable HandBrake CFBundleGetInfoString 0.9.0 CFBundleIconFile HandBrake CFBundleIdentifier org.m0k.handbrake CFBundleInfoDictionaryVersion 6.0 CFBundleName HandBrake CFBundlePackageType APPL CFBundleShortVersionString $2 CFBundleSignature HB## CFBundleVersion $3 NSHumanReadableCopyright HandBrake Devs NSMainNibFile MainMenu NSPrincipalClass NSApplication " > Info.plist if [ $4 == "DEV" ]; then echo Installing libquicktime Plugins in the $1 Bundle cd Resources mkdir plugins cd plugins cp ../../../../contrib/lib/libquicktime/* . fi