Created
October 12, 2013 19:41
-
-
Save grappler/6954035 to your computer and use it in GitHub Desktop.
Bash file to create .mo files without keeping the .po files.
This file contains 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 characters
#! /bin/sh | |
for file in `/usr/bin/find . -name '*.po'` ; do /usr/bin/msgfmt -o ${file/.po/.mo} $file && /usr/bin/rm $file ; done |
! /bin/sh
for file in find . -name "*.po"
; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done
is working beautifully, thanks man
Great, I did not have time to test the first solution.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope it's not working for me, is it for you? It erases the content of the po not the file :)