начитавшись получили вот такой скрипт:
#!/bin/sh
mp3file="$*"
if [ -z $1 ]
then
echo Usage: $0 file.mp3
exit
fi
for file in `ls -1rt $mp3file`
do
echo "File: $file "
filename=`echo $file | sed s/\\.mp3//`
wavfile="${filename}.wav"
m4afile="${filename}.m4a"
m4rfile="${filename}.m4r"
mpg123 -w $wavfile $file
faac -b 128 -c 44100 -w $wavfile
rm $wavfile
mv $m4afile $m4rfile
done
заливать на айфон по ssh как-то так:scp *.m4r root@iphone:/Library/Ringtones/