Created
February 19, 2014 17:33
-
-
Save ahknight/9097032 to your computer and use it in GitHub Desktop.
Revisions
-
ahknight created this gist
Feb 19, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/bash if [ -z $1 ]; then echo "usage: `basename $0` /full/path/to/MYPROJ-Info.plist font1.(ttf|otf) [font2 font3 ...] #names of font files" exit 1 fi PLIST=$1 shift FONTS=$@ for FONT in $FONTS; do defaults write "${PLIST//.plist/}" UIAppFonts -array-add "${FONT}" done