Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1368623 - Allow perl to be msys or strawberry, r=franziskus
On windows, mozilla-build comes with perl. The way that gyp ends up invoking perl leads to perl receiving a filename argument that contains backslashes. You can address this, as you have suggested, by installing strawberry perl and putting that on the path ahead of /bin, but it's more software and unnecessary. This little python wrapper avoids that problem. It works with both strawberry and the copy that comes with msys. Differential Revision: https://nss-review.dev.mozaws.net/D327 --HG-- extra : rebase_source : 06fa67f2fdfef688cc422339c6be9a913102c4ef
- Loading branch information
1 parent
4becc89
commit e0bc09e
Showing
2 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import subprocess | ||
import os | ||
import sys | ||
|
||
def main(): | ||
args = [os.path.realpath(x) for x in sys.argv[1:]] | ||
subprocess.check_call(['perl', 'certdata.perl'] + args, env=os.environ) | ||
|
||
if __name__ == '__main__': | ||
main() |