2016-06-04 | Paul Boddie | raw annotate files changeset graph | Moved the schedule call inside the try...finally statement to ensure that failure causes locks to be released, since the start_scheduling call which acquires locks occurs inside apply_scheduling_functions (which is called by the schedule method). |
1 #!/bin/sh 2 3 if ! which msgfmt > /dev/null 2>&1 ; then 4 exit 1 5 fi 6 7 DOMAIN=imip-agent 8 9 for FILENAME in messages/*.po ; do 10 LOCALE_ID=`basename "$FILENAME" ".$DOMAIN.po"` 11 mkdir -p "locale/$LOCALE_ID/LC_MESSAGES" 12 msgfmt -o "locale/$LOCALE_ID/LC_MESSAGES/$DOMAIN.mo" "$FILENAME" 13 done