Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A solution for running under Windows (CygWin) #11

Open
tivnet opened this issue Mar 2, 2015 · 0 comments
Open

A solution for running under Windows (CygWin) #11

tivnet opened this issue Mar 2, 2015 · 0 comments

Comments

@tivnet
Copy link

tivnet commented Mar 2, 2015

Hi Stephen @stephenharris ,

I wasn't able to run the msgmerge from within the pot. Running it manually from the shell worked fine, but not from Grunt.

The patch below worked (with Node 0.12).

I am not sure, but it looked to me like async spawn wasn't working well under Windows, even with CygWin.

Check if you want to replace all execs with execSyncs. All works fast enough, so why do you need async?

Thank you!

            if (poFilePaths && options.msgmerge) {
                var execSync = require('child_process').execSync;

                poFilePaths.forEach(function (poFile) {
                    execSync('msgmerge -vU ' + poFile + ' ' + potFile);
                });

            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant