1 2 3 4 5 6
#!/bin/sh for i in *.po do dir="locale/${i%.mo}/LC_MESSAGES" [ -d "$dir" ] || mkdir -p "$dir" msgfmt -v "$i" -o "$dir/subdap.mo" done