On Mon, Mar 14, 2011 at 3:20 PM, Adrien BARREAU
<abarreau.dev@live.fr> wrote:
Hi Laurent,
I would say yes, because Coral can execute any piece of Smalltalk.
So if you can do what that script does with OSProcess, there is no reason you can't put it in a Coral script.
At that time, there is no Coral API to make your life easier on top on things like OSProcess, but perhaps I should write some things like that.
If you have any ideas while trying, don't hesitate to tell me :).
OK, I put this on my things-to-try list :)
Laurent
��
Adrien.
From:
laurent.laffont@gmail.comDate: Mon, 14 Mar 2011 12:33:30 +0100
To:
pharo-project@lists.gforge.inria.fr
Subject: [Pharo-project] from bash to Coral
Hi,
Is it possible today to write this using Coral ?
find application library -type f \( -name "*.php" -o -name "*.phtml" \) -exec ��/usr/local/bin/xgettext -j -L PHP --from-code=utf-8 --keyword=traduire --keyword=_ -o library/translation/fr.pot {} \;
for i in `ls library/translation/*.po`
do
/usr/local/bin/msgmerge -s $i library/translation/fr.pot -o $i
/usr/local/bin/msgfmt -o `echo $i|cut -d '.' -f1`.mo $i
done
I need to write several scripts like this - would be cool to start with Coral.