4 # Should be run from adium/Utilities
5 # Takes one argument, which should be the path to the adium-0.8 root
8 if [ ! -d "$1" ] # Test if target directory exists.
10 echo "Useage: From adium/Utilities: ./$0 PATH_TO_ADIUM-0.8 ROOT"
16 if [ ! -d "$MYDIR/../Resources" ] # Test if Resources exists.
18 echo "Usage: From adium/Utilities: update_lprojs PATH_TO_ADIUM-0.8 ROOT"
22 echo Synchronizing .lproj folders to
$1...
26 "Frameworks/AIUtilities Framework/Resources" \
27 "Plugins/Gaim Service" \
28 "Plugins/WebKit Message View" \
31 cd "$MYDIR/../$resources"
52 if [ -d $lang.lproj
] ; then
55 # Death to backup nibs
59 # Copy all files from the nib which are listed in nib.bom.
60 # nib.bom is a BOM file listing classes.nib, keyedobjects.nib, and objects.nib
61 # We do this to avoid copying the .svn folder
63 find .
'(' -name "*.nib" ')' -prune \
64 -execdir ditto
-bom "$MYDIR/nib.bom" \
65 "{}" "$1/$resources/$lang.lproj/{}" ';'
67 # Copy the strings files
68 cp *.
strings "$1/$resources/$lang.lproj"
71 echo Synced
"$resources/$lang"